public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-emulation/gfceux/files: gfceux-2.1.1-gentoo.patch
@ 2009-09-29  5:16 Michael Sterrett (mr_bones_)
  0 siblings, 0 replies; only message in thread
From: Michael Sterrett (mr_bones_) @ 2009-09-29  5:16 UTC (permalink / raw
  To: gentoo-commits

mr_bones_    09/09/29 05:16:35

  Added:                gfceux-2.1.1-gentoo.patch
  Log:
  initial commit
  (Portage version: 2.1.6.13/cvs/Linux i686)

Revision  Changes    Path
1.1                  games-emulation/gfceux/files/gfceux-2.1.1-gentoo.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/gfceux/files/gfceux-2.1.1-gentoo.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/gfceux/files/gfceux-2.1.1-gentoo.patch?rev=1.1&content-type=text/plain

Index: gfceux-2.1.1-gentoo.patch
===================================================================
diff -ru gfceux.orig/src/main.py gfceux/src/main.py
--- gfceux.orig/src/main.py	2009-04-29 01:09:52.000000000 -0400
+++ gfceux/src/main.py	2009-09-29 00:38:53.152619918 -0400
@@ -279,12 +279,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('data/gfceux.glade'):
-            glade_file = 'data/gfceux.glade'
-        # 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.glade')):
-            glade_file = os.path.join(os.path.dirname(sys.argv[0]), '../share/gfceux/gfceux.glade')
+        if os.path.isfile('/usr/share/gfceux/gfceux.glade'):
+            glade_file = '/usr/share/gfceux/gfceux.glade'
         else:
             print 'ERROR.'
             print 'Could not find the glade UI file.'






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-29  5:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-29  5:16 [gentoo-commits] gentoo-x86 commit in games-emulation/gfceux/files: gfceux-2.1.1-gentoo.patch Michael Sterrett (mr_bones_)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox