Add -c config cl option. Fpdb passes cl options to HUD.

This commit is contained in:
Ray
2009-06-14 23:14:53 -04:00
parent a5ac2dcf75
commit b1ea38bea9
6 changed files with 76 additions and 25 deletions
+6 -1
View File
@@ -28,6 +28,7 @@ import time
import fpdb_import
from optparse import OptionParser
import Configuration
import string
class GuiAutoImport (threading.Thread):
def __init__(self, settings, config):
@@ -165,7 +166,11 @@ class GuiAutoImport (threading.Thread):
command = os.path.join(sys.path[0], 'HUD_main.py')
#command = self.config.execution_path('HUD_main.py') # Hi Ray. Sorry about this, kludging.
bs = 1
self.pipe_to_hud = subprocess.Popen((command, self.database), bufsize = bs, stdin = subprocess.PIPE,
print "GUI:options =", self.settings['cl_options']
options = string.split(self.settings['cl_options'])
cl = [command, ] + options
print "cl =", cl
self.pipe_to_hud = subprocess.Popen(cl, bufsize = bs, stdin = subprocess.PIPE,
universal_newlines=True)
# self.pipe_to_hud = subprocess.Popen((command, self.database), bufsize = bs, stdin = subprocess.PIPE,
# universal_newlines=True)