mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 05:26:15 +01:00
Fix viewer lockups when launching from GUI
This commit is contained in:
parent
4c30684322
commit
e799f2c76f
1 changed files with 1 additions and 4 deletions
|
|
@ -112,11 +112,8 @@ def run(self, job_id, func, args=[], kwdargs={}, monitor=True):
|
|||
cmd = prefix + 'from libprs500.parallel import run_job; run_job(\'%s\')'%binascii.hexlify(job_data)
|
||||
|
||||
if not monitor:
|
||||
p = popen([python, '-c', cmd], stdout=subprocess.PIPE, stdin=subprocess.PIPE,
|
||||
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…
Reference in a new issue