1
0
mirror of https://github.com/ciromattia/kcc synced 2026-06-09 16:10:30 +00:00

Fix for hardcoded kindlegen HD path.

This commit is contained in:
Ciro Mattia Gonano
2012-12-18 11:39:35 +01:00
parent dd90ab5908
commit fba598d5bf
5 changed files with 65 additions and 49 deletions
@@ -1699,6 +1699,10 @@ def custom_popen(cmd):
if sys.platform == 'win32':
creationflags = 0x08000000 # CREATE_NO_WINDOW
out_file = open("/tmp/test.txt","w")
out_file.write('[%s]' % ', '.join(map(str, cmd)))
out_file.close()
# run command
p = Popen(cmd, bufsize = 0, stdout = PIPE, stdin = PIPE, stderr = STDOUT,
creationflags = creationflags)