Lines 270-281
Link Here
|
270 |
def load_ui(self): |
270 |
def load_ui(self): |
271 |
global widgets |
271 |
global widgets |
272 |
""" Search for the glade XML file and load it """ |
272 |
""" Search for the glade XML file and load it """ |
273 |
# Check first in the directory of this script. |
273 |
if os.path.isfile('@GENTOO_DATADIR@/gfceux/gfceux.xml'): |
274 |
if os.path.isfile('gfceux.xml'): |
274 |
glade_file = '@GENTOO_DATADIR@/gfceux/gfceux.xml' |
275 |
glade_file = 'gfceux.xml' |
|
|
276 |
# Then check to see if its installed on a *nix system |
277 |
elif os.path.isfile(os.path.join(os.path.dirname(sys.argv[0]), '../share/gfceux/gfceux.xml')): |
278 |
glade_file = os.path.join(os.path.dirname(sys.argv[0]), '../share/gfceux/gfceux.xml') |
279 |
else: |
275 |
else: |
280 |
print 'ERROR.' |
276 |
print 'ERROR.' |
281 |
print 'Could not find the ' + glade_file + ' file.' |
277 |
print 'Could not find the ' + glade_file + ' file.' |