Cleanup in HUD_main and HUD.py to simplify.

HUD_run_me no longer needed but not removed.
This commit is contained in:
Ray
2009-02-21 18:19:49 -05:00
parent 18140defd8
commit 2ebb026543
3 changed files with 126 additions and 120 deletions
+2 -2
View File
@@ -128,12 +128,12 @@ class GuiAutoImport (threading.Thread):
widget.set_label(u'Stop Autoimport')
if self.pipe_to_hud is None:
if os.name == 'nt':
command = "python HUD_run_me.py" + " %s" % (self.database)
command = "python HUD_main.py" + " %s" % (self.database)
bs = 0 # windows is not happy with line buffing here
self.pipe_to_hud = subprocess.Popen(command, bufsize = bs, stdin = subprocess.PIPE,
universal_newlines=True)
else:
command = self.config.execution_path('HUD_run_me.py')
command = self.config.execution_path('HUD_main.py')
bs = 1
self.pipe_to_hud = subprocess.Popen((command, self.database), bufsize = bs, stdin = subprocess.PIPE,
universal_newlines=True)