- Moved binaries and images to correct subdirectories
This commit is contained in:
parent
f8480f0815
commit
9a182784a3
@ -15,7 +15,7 @@ import Misc
|
||||
|
||||
def ScytherIcon(window):
|
||||
""" Set a nice Scyther icon """
|
||||
iconfile = Misc.mypath("scyther-gui-32.ico")
|
||||
iconfile = Misc.mypath(os.path.join("images","scyther-gui-32.ico"))
|
||||
if os.path.isfile(iconfile):
|
||||
icon = wx.Icon(iconfile,wx.BITMAP_TYPE_ICO)
|
||||
window.SetIcon(icon)
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
""" Import externals """
|
||||
import os
|
||||
import os.path
|
||||
import sys
|
||||
import StringIO
|
||||
import tempfile
|
||||
@ -26,13 +27,14 @@ class Scyther(object):
|
||||
if sys.platform.startswith('win'):
|
||||
""" Windows """
|
||||
# TODO hardcoded for now, bad
|
||||
self.program = "c:\\Scyther.exe"
|
||||
self.program = os.path.join("bin","Scyther.exe")
|
||||
if not os.path.isfile(self.program):
|
||||
print "I can't find the Scyther executable at %s" % (self.program)
|
||||
else:
|
||||
""" Non-windows """
|
||||
self.program = "scyther"
|
||||
self.program = os.path.join("bin","scyther")
|
||||
|
||||
# defaults
|
||||
self.options = ""
|
||||
self.spdl = None
|
||||
self.inputfile = None
|
||||
@ -113,7 +115,7 @@ def basicTest():
|
||||
x = Scyther()
|
||||
|
||||
if sys.platform.startswith('win'):
|
||||
x.program = "Scyther.exe"
|
||||
x.program = os.path.join("bin","Scyther.exe")
|
||||
if not os.path.isfile(x.program):
|
||||
print "I can't find the Scyther executable %s" % (x.program)
|
||||
pw,pr = os.popen2("%s --help" % x.program)
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Loading…
Reference in New Issue
Block a user