fixed weird issue where glade file wasn't working
This commit is contained in:
parent
89c4dcc76a
commit
00a47173b4
9
gfceu
9
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.'
|
||||
|
|
Loading…
Reference in New Issue