debug and refine fpdb.pyw changes for .exe version

This commit is contained in:
sqlcoder
2010-06-06 10:57:51 +01:00
parent 9421f045dd
commit da203fbe6c
2 changed files with 37 additions and 1 deletions
+6 -1
View File
@@ -210,7 +210,12 @@ class GuiAutoImport (threading.Thread):
print "opening pipe to HUD"
self.pipe_to_hud = subprocess.Popen(command, bufsize=bs,
stdin=subprocess.PIPE,
universal_newlines=True)
stdout=subprocess.PIPE, # only needed for py2exe
stderr=subprocess.PIPE, # only needed for py2exe
universal_newlines=True
)
self.pipe_to_hud.stdout.close()
self.pipe_to_hud.stderr.close()
except:
err = traceback.extract_tb(sys.exc_info()[2])[-1]
#self.addText( "\n*** GuiAutoImport Error opening pipe: " + err[2] + "(" + str(err[1]) + "): " + str(sys.exc_info()[1]))