From 00a47173b4e7ddafaa172ea100aeccb9bdaf8a06 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Thu, 5 Jun 2008 02:04:33 +0000 Subject: [PATCH] fixed weird issue where glade file wasn't working --- gfceu | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gfceu b/gfceu index 83f6671b..1fba8701 100644 --- a/gfceu +++ b/gfceu @@ -489,6 +489,7 @@ optionsfile = appconfigdir + 'gfceu_options.dat' fceu_binary = None aoss_binary = None fceu_server_binary = None +glade_file = None #version is defined earlier in the code #have_vfs is defined earlier in the code @@ -496,12 +497,12 @@ class WidgetsWrapper: def __init__(self): # Search for the glade file # Check first in the directory of this script. - if os.path.isfile(os.path.dirname(sys.argv[0])+'/gfceu.glade'): - glade_file = os.path.dirname(sys.argv[0])+'/gfceu.glade' + if os.path.isfile(os.path.dirname(sys.argv[0])+'gfceu.glade'): + glade_file = os.path.dirname(sys.argv[0]) + 'gfceu.glade' # Then check in the share directory (installed) elif os.path.isfile(os.path.dirname(sys.argv[0]) +\ - '/../share/gfceu/gfceu.glade'): - glade_file = os.path.dirname(sys.argv[0])+'/../share/gfceu/gfceu.glade' + '../share/gfceu/gfceu.glade'): + glade_file = os.path.dirname(sys.argv[0])+'../share/gfceu/gfceu.glade' else: print 'ERROR.' print 'Could not find the glade interface file.'