From cc5f77e950421dbd708e1e9ba773fc91784a6bf7 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sun, 31 Jan 2010 11:16:42 +0000 Subject: [PATCH] fix windows problem starting hud --- pyfpdb/GuiAutoImport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyfpdb/GuiAutoImport.py b/pyfpdb/GuiAutoImport.py index 628f7b7f..339ce968 100755 --- a/pyfpdb/GuiAutoImport.py +++ b/pyfpdb/GuiAutoImport.py @@ -194,7 +194,8 @@ class GuiAutoImport (threading.Thread): widget.set_label(u' _Stop Autoimport ') if self.pipe_to_hud is None: if os.name == 'nt': - command = "python "+sys.path[0]+"\\HUD_main.py " + self.settings['cl_options'] + path = sys.path[0].replace('\\','\\\\') + command = 'python "'+path+'\\HUD_main.py" ' + self.settings['cl_options'] bs = 0 else: command = os.path.join(sys.path[0], 'HUD_main.py')