summaryrefslogtreecommitdiffstats
path: root/firstaidkit
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-04-24 17:27:39 +0200
committerMartin Sivak <msivak@redhat.com>2008-04-24 17:27:39 +0200
commitb0728db37868d1db53a856292165f3c6273802b2 (patch)
tree705efbe8ba2850ac2f6692242cf52d7e4532f585 /firstaidkit
parent3fc73c4c5e631a39f0ba421c514f5af4cdca4e61 (diff)
downloadfirstaidkit-b0728db37868d1db53a856292165f3c6273802b2.tar.gz
firstaidkit-b0728db37868d1db53a856292165f3c6273802b2.tar.xz
firstaidkit-b0728db37868d1db53a856292165f3c6273802b2.zip
Fix the gui searching code to support more directories and fix the default paths
Diffstat (limited to 'firstaidkit')
-rwxr-xr-xfirstaidkit8
1 files changed, 4 insertions, 4 deletions
diff --git a/firstaidkit b/firstaidkit
index ec8ec38..d9e79e6 100755
--- a/firstaidkit
+++ b/firstaidkit
@@ -88,9 +88,9 @@ class Output(Thread):
class GuiOutput(Thread):
- def __init__(self, cfg, tasker, importance = logging.INFO, *args, **kwargs):
+ def __init__(self, cfg, tasker, dir, importance = logging.INFO, *args, **kwargs):
Thread.__init__(self, *args, **kwargs)
- self.w = MainWindow(cfg, tasker, importance = importance, dir=cfg.system.frontend)
+ self.w = MainWindow(cfg, tasker, importance = importance, dir=dir)
def run(self):
self.w.run()
@@ -237,11 +237,11 @@ if __name__=="__main__":
if Config.operation.verbose=="False":
outputThread = Output(singlerun.reporting())
if Config.operation.gui=="gui":
- outputThreadGui = GuiOutput(Config, singlerun)
+ outputThreadGui = GuiOutput(Config, singlerun, dir = os.path.dirname(frontend_gtk.__file__))
else:
outputThread = Output(singlerun.reporting(), importance = 0)
if Config.operation.gui=="gui":
- outputThreadGui = GuiOutput(Config, singlerun, importance = 0)
+ outputThreadGui = GuiOutput(Config, singlerun, importance = 0, dir = os.path.dirname(frontend_gtk.__file__))
if Config.operation.gui=="gui":
singlerun.reporting().notify(outputThreadGui.w.update)