gfceu now looks in the script directory for fceux

this will make it easy to pump out (g)fceux sdl builds for testing
This commit is contained in:
punkrockguy318 2008-07-02 17:30:06 +00:00
parent db7f0658bc
commit ee1e742261
2 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,7 @@
* Supports autoscale
* No longer requires GnomeVFS
* Major code cleanup
* Supports fceux command line options (different syntax from fceu)
* Now requires pygtk >= 2.12
* Transitioned from gtk.glade to gtk.Builder.
* Changed some strings to reflect new email and website

11
gfceu
View File

@ -166,12 +166,12 @@ def set_options():
options.host_pass = widgets.get_object("host_pass").get_text()
def find_binary(file):
# first check the script directory
if os.path.isfile(os.path.join(os.path.dirname(sys.argv[0]),file)):
return os.path.join(os.path.dirname(sys.argv[0]), file)
# if not in the script directory, check the $PATH
path = os.getenv('PATH')
directories= []
directory = ''
@ -187,8 +187,7 @@ def find_binary(file):
if os.path.isfile(os.path.join(x, file)):
return os.path.join(x,file)
if os.path.isfile(os.path.join(os.curdir,file)):
return os.path.join(os.curdir, file)
return None