diff options
| author | Devendra | 2014-04-29 03:11:45 +0530 |
|---|---|---|
| committer | Devendra | 2014-04-29 03:11:45 +0530 |
| commit | d703c34d918a75a4d5a984143c8fbd5049931b1a (patch) | |
| tree | 4438352661eafe3384a397ad8c68ed008c20ab1f /python/examples/console.py | |
| parent | 769c3a908890a15c8f5e08cd651e1120194c2e74 (diff) | |
| download | pubnub-python-d703c34d918a75a4d5a984143c8fbd5049931b1a.tar.bz2 | |
adding start console script and helper files
Diffstat (limited to 'python/examples/console.py')
| -rw-r--r-- | python/examples/console.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/examples/console.py b/python/examples/console.py index 8a3ab3b..e96b4e5 100644 --- a/python/examples/console.py +++ b/python/examples/console.py @@ -5,6 +5,7 @@ ## Copyright (c) 2010 Stephen Blum ## http://www.pubnub.com/ + import sys from Pubnub import PubnubAsync as Pubnub import threading @@ -19,6 +20,9 @@ import os import readline import rlcompleter +if sys.argv[0] == "screen": + print "screen" + historyPath = os.path.expanduser("~/.pubnub_console_history") def save_history(historyPath=historyPath): |
