Moved execution_path() to Configuration.py.

This commit is contained in:
Ray
2008-12-13 17:37:23 -05:00
parent 3994d3bb94
commit 094f176c5d
2 changed files with 8 additions and 6 deletions
+1 -6
View File
@@ -24,7 +24,6 @@ import gtk
import gobject
import os
import sys
import inspect
import time
import fpdb_import
@@ -107,10 +106,6 @@ class GuiAutoImport (threading.Thread):
print "GuiAutoImport.import_dir done"
return True
def execution_path(self, filename):
"""Join the fpdb path to filename."""
return os.path.join(os.path.dirname(inspect.getfile(sys._getframe(1))), filename)
def startClicked(self, widget, data):
"""runs when user clicks start on auto import tab"""
@@ -132,7 +127,7 @@ class GuiAutoImport (threading.Thread):
self.pipe_to_hud = subprocess.Popen(command, bufsize = bs, stdin = subprocess.PIPE,
universal_newlines=True)
else:
command = self.execution_path('HUD_main.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)