diff options
author | Martin Sivak <msivak@redhat.com> | 2008-04-24 17:27:39 +0200 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2008-04-24 17:27:39 +0200 |
commit | b0728db37868d1db53a856292165f3c6273802b2 (patch) | |
tree | 705efbe8ba2850ac2f6692242cf52d7e4532f585 /firstaidkit | |
parent | 3fc73c4c5e631a39f0ba421c514f5af4cdca4e61 (diff) | |
download | firstaidkit-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-x | firstaidkit | 8 |
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) |