--- gfceux.old 2008-12-26 02:23:55.000000000 -0600 +++ gfceux 2008-12-26 02:25:06.000000000 -0600 @@ -270,12 +270,8 @@ def load_ui(self): global widgets """ Search for the glade XML file and load it """ - # Check first in the directory of this script. - if os.path.isfile('gfceux.xml'): - glade_file = 'gfceux.xml' - # Then check to see if its installed on a *nix system - elif os.path.isfile(os.path.join(os.path.dirname(sys.argv[0]), '../share/gfceux/gfceux.xml')): - glade_file = os.path.join(os.path.dirname(sys.argv[0]), '../share/gfceux/gfceux.xml') + if os.path.isfile('@GENTOO_DATADIR@/gfceux/gfceux.xml'): + glade_file = '@GENTOO_DATADIR@/gfceux/gfceux.xml' else: print 'ERROR.' print 'Could not find the ' + glade_file + ' file.'