aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/console.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/console.py')
-rw-r--r--python/examples/console.py4
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):