mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix multi-processing code to work with py2exe'd executables
This commit is contained in:
parent
8cd1799ad9
commit
fb805aa4ec
@ -112,7 +112,11 @@ class Server(object):
|
||||
cmd = prefix + 'from libprs500.parallel import run_job; run_job(\'%s\')'%binascii.hexlify(job_data)
|
||||
|
||||
if not monitor:
|
||||
popen([python, '-c', cmd])
|
||||
p = popen([python, '-c', cmd], stdout=subprocess.PIPE, stdin=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
p.stdout.close()
|
||||
p.stdin.close()
|
||||
p.stderr.close()
|
||||
return
|
||||
|
||||
output = open(os.path.join(job_dir, 'output.txt'), 'wb')
|
||||
|
Loading…
x
Reference in New Issue
Block a user