Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Get correct path for glade file based on the path of the system package.

This commit is contained in:
Einar Ryeng 2006-04-27 11:20:12 +00:00
parent 969006015a
commit 60c1d19a74
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,8 @@ import gobject
from system import logger, project, workflow
import workflows
GLADEFILENAME = os.path.dirname(sys.argv[0]) + '/system/fluent.glade'
DATADIR = os.path.dirname(sys.modules['system'].__file__)
GLADEFILENAME = os.path.join(DATADIR, 'fluent.glade')
class CreateProjectDruid(gtk.Window):
"""A druid for creating a new project.

View File

@ -17,7 +17,8 @@ from system import project, workflow, dataset, logger, plots, navigator, dialogs
PROGRAM_NAME = 'fluents'
VERSION = '0.1.0'
GLADEFILENAME = os.path.dirname(sys.argv[0]) + '/system/fluent.glade'
DATADIR = os.path.dirname(sys.modules['system'].__file__)
GLADEFILENAME = os.path.join(DATADIR, 'fluent.glade')
class FluentApp: