From c95c18eb1495d1702b656554403962b2b36cc075 Mon Sep 17 00:00:00 2001 From: einarr Date: Thu, 27 Apr 2006 10:54:18 +0000 Subject: [PATCH] fluents.glade is now read from '/system/' under the directory of argv[0]. --- system/dialogs.py | 2 +- system/fluents.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/system/dialogs.py b/system/dialogs.py index d713bcf..2c05877 100644 --- a/system/dialogs.py +++ b/system/dialogs.py @@ -7,7 +7,7 @@ import gobject from system import logger, project, workflow import workflows -GLADEFILENAME = 'system/fluent.glade' +GLADEFILENAME = os.path.dirname(sys.argv[0]) + '/system/fluent.glade' class CreateProjectDruid(gtk.Window): """A druid for creating a new project. diff --git a/system/fluents.py b/system/fluents.py index 16977b1..520255f 100755 --- a/system/fluents.py +++ b/system/fluents.py @@ -1,5 +1,6 @@ #!/usr/bin/python +import os import sys import pygtk @@ -14,9 +15,9 @@ import pango from system import project, workflow, dataset, logger, plots, navigator, dialogs -PROGRAM_NAME = 'fluent' +PROGRAM_NAME = 'fluents' VERSION = '0.1.0' -GLADEFILENAME = 'system/fluent.glade' +GLADEFILENAME = os.path.dirname(sys.argv[0]) + '/system/fluent.glade' class FluentApp: