aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/subscribe-example.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/subscribe-example.py')
-rwxr-xr-xpython/examples/subscribe-example.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/examples/subscribe-example.py b/python/examples/subscribe-example.py
index 14a43d9..a67a08f 100755
--- a/python/examples/subscribe-example.py
+++ b/python/examples/subscribe-example.py
@@ -1,5 +1,6 @@
import sys
-sys.path.append('../')
+sys.path.append('..')
+sys.path.append('.')
import threading
import time
import random
@@ -59,7 +60,7 @@ publish()
print("waiting for subscribes and presence")
pres_thread.join()
-print pubnub.here_now({'channel':channel})
+print(pubnub.here_now({'channel':channel}))
sub_thread.join()