Changes to make running py2exe exe happy.

This commit is contained in:
Eratosthenes
2010-02-05 23:19:58 -05:00
parent 4df991517e
commit 8aa18b95d8
2 changed files with 2 additions and 18 deletions
Regular → Executable
+1 -6
View File
@@ -193,11 +193,7 @@ class GuiAutoImport (threading.Thread):
self.doAutoImportBool = True
widget.set_label(u' _Stop Autoimport ')
if self.pipe_to_hud is None:
if Configuration.FROZEN:
path = Configuration.EXEC_PATH
command = "HUD_main.exe"
bs = 0
elif os.name == 'nt':
if os.name == 'nt':
path = sys.path[0].replace('\\','\\\\')
command = 'python "'+path+'\\HUD_main.py" ' + self.settings['cl_options']
bs = 0
@@ -207,7 +203,6 @@ class GuiAutoImport (threading.Thread):
bs = 1
try:
print "opening pipe to HUD"
self.pipe_to_hud = subprocess.Popen(command, bufsize=bs,
stdin=subprocess.PIPE,
universal_newlines=True)