From d703c34d918a75a4d5a984143c8fbd5049931b1a Mon Sep 17 00:00:00 2001 From: Devendra Date: Tue, 29 Apr 2014 03:11:45 +0530 Subject: adding start console script and helper files --- python/examples/console.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/examples/console.py') 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): -- cgit v1.2.3