Changes for py2exe exe.
This commit is contained in:
		
							parent
							
								
									8a2c24ceff
								
							
						
					
					
						commit
						120d05f9cd
					
				|  | @ -193,7 +193,11 @@ class GuiAutoImport (threading.Thread): | ||||||
|                 self.doAutoImportBool = True |                 self.doAutoImportBool = True | ||||||
|                 widget.set_label(u'  _Stop Autoimport  ') |                 widget.set_label(u'  _Stop Autoimport  ') | ||||||
|                 if self.pipe_to_hud is None: |                 if self.pipe_to_hud is None: | ||||||
|                     if os.name == 'nt': |                     if Configuration.FROZEN: | ||||||
|  |                         path = Configuration.EXEC_PATH | ||||||
|  |                         command = "HUD_main.exe" | ||||||
|  |                         bs = 0 | ||||||
|  |                     elif os.name == 'nt': | ||||||
|                         path = sys.path[0].replace('\\','\\\\') |                         path = sys.path[0].replace('\\','\\\\') | ||||||
|                         command = 'python "'+path+'\\HUD_main.py" ' + self.settings['cl_options'] |                         command = 'python "'+path+'\\HUD_main.py" ' + self.settings['cl_options'] | ||||||
|                         bs = 0 |                         bs = 0 | ||||||
|  | @ -203,6 +207,7 @@ class GuiAutoImport (threading.Thread): | ||||||
|                         bs = 1 |                         bs = 1 | ||||||
| 
 | 
 | ||||||
|                     try: |                     try: | ||||||
|  |                         print "opening pipe to HUD" | ||||||
|                         self.pipe_to_hud = subprocess.Popen(command, bufsize=bs, |                         self.pipe_to_hud = subprocess.Popen(command, bufsize=bs, | ||||||
|                                                             stdin=subprocess.PIPE, |                                                             stdin=subprocess.PIPE, | ||||||
|                                                             universal_newlines=True) |                                                             universal_newlines=True) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user