Permalink
Browse files

pyrasite-shell improvements

  • Loading branch information...
1 parent 7b198ab commit 6b4bd0648271f55069ff0f7bd6ce99dadbf2ac2a @lmacken committed Mar 25, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 pyrasite/tools/shell.py
View
@@ -29,14 +29,15 @@ def shell():
ipc = pyrasite.PyrasiteIPC(int(sys.argv[1]))
ipc.connect()
- print("pyrasite shell %s" % pyrasite.__version__)
+ print("Pyrasite Shell %s" % pyrasite.__version__)
+ print("Connected to '%s'" % ipc.title)
print(ipc.cmd('import sys; print("Python " + sys.version + ' +
- '" on " + sys.platform)'))
+ '" on " + sys.platform)').strip())
+
try:
while True:
print(ipc.cmd(raw_input('>>> ')))
except:
- pass
+ print('')
ipc.close()
- print()

0 comments on commit 6b4bd06

Please sign in to comment.