mirror of
https://github.com/kennethreitz-archive/plac.git
synced 2026-06-05 23:50:18 +00:00
11 lines
286 B
Python
11 lines
286 B
Python
import sys
|
|
from plac_ext import Process
|
|
|
|
if __name__ == '__main__':
|
|
proc = Process(['ishelve2.py', '-c', '~/conf.shelve'])
|
|
while True:
|
|
multiline = ' '.join(iter(sys.stdin.readline, 'END\n'))
|
|
if not multiline:
|
|
break
|
|
print proc.send(multiline)
|