Commit 6b4bd064 authored by Luke Macken's avatar Luke Macken

pyrasite-shell improvements

parent 7b198aba
...@@ -29,14 +29,15 @@ def shell(): ...@@ -29,14 +29,15 @@ def shell():
ipc = pyrasite.PyrasiteIPC(int(sys.argv[1])) ipc = pyrasite.PyrasiteIPC(int(sys.argv[1]))
ipc.connect() 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 + ' + print(ipc.cmd('import sys; print("Python " + sys.version + ' +
'" on " + sys.platform)')) '" on " + sys.platform)').strip())
try: try:
while True: while True:
print(ipc.cmd(raw_input('>>> '))) print(ipc.cmd(raw_input('>>> ')))
except: except:
pass print('')
ipc.close() ipc.close()
print()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment