mirror of
https://github.com/kennethreitz-archive/plac.git
synced 2026-06-05 23:50:18 +00:00
11 lines
235 B
Python
11 lines
235 B
Python
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)
|