Exemplo n.º 1
0
import os, plac, ishelve2

try:
    fifo = os.mkfifo('/tmp/x')
except OSError: # fifo exists
    pass

if __name__ == '__main__':
    i = plac.Interpreter(ishelve2.main())
    i.execute(iter(open('/tmp/x').readline, ''), verbose=True)
Exemplo n.º 2
0
# cmd_ext.py
from plac_ext import cmd_interface
import ishelve2

if __name__ == '__main__':
    cmd_interface(ishelve2.main()).cmdloop()