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:
parent
db7f0658bc
commit
ee1e742261
|
@ -1,5 +1,7 @@
|
||||||
|
* Supports autoscale
|
||||||
* No longer requires GnomeVFS
|
* No longer requires GnomeVFS
|
||||||
* Major code cleanup
|
* Major code cleanup
|
||||||
|
* Supports fceux command line options (different syntax from fceu)
|
||||||
* Now requires pygtk >= 2.12
|
* Now requires pygtk >= 2.12
|
||||||
* Transitioned from gtk.glade to gtk.Builder.
|
* Transitioned from gtk.glade to gtk.Builder.
|
||||||
* Changed some strings to reflect new email and website
|
* Changed some strings to reflect new email and website
|
||||||
|
|
11
gfceu
11
gfceu
|
@ -166,12 +166,12 @@ def set_options():
|
||||||
options.host_pass = widgets.get_object("host_pass").get_text()
|
options.host_pass = widgets.get_object("host_pass").get_text()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def find_binary(file):
|
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')
|
path = os.getenv('PATH')
|
||||||
directories= []
|
directories= []
|
||||||
directory = ''
|
directory = ''
|
||||||
|
@ -187,8 +187,7 @@ def find_binary(file):
|
||||||
if os.path.isfile(os.path.join(x, file)):
|
if os.path.isfile(os.path.join(x, file)):
|
||||||
return 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
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue