Fixed export SWF to be compatible with Windows file paths

This commit is contained in:
Skyler Lehmkuhl 2013-01-19 18:57:18 -05:00
parent 010930152a
commit 0b6ef387e9
1 changed files with 1 additions and 1 deletions

View File

@ -881,7 +881,7 @@ def export_swf(widget=None):
return
open(f.path+".sc",'w').write(create_sc(root))
# svlgui.execute("swfc/swfc_"+svlgui.PLATFORM+" "+os.getenv('HOME')+"/test.sc -o "+os.getenv('HOME')+"/test.swf")
x = os.system("swfc/swfc_"+svlgui.PLATFORM+" "+f.path+".sc -o "+f.path)
x = os.system("swfc"+svlgui.sep+"swfc_"+svlgui.PLATFORM+" "+f.path+".sc -o "+f.path)
if sys.version_info < (2, 6):
if x==5: # which is the error value returned when linking libjpeg fails
if svlgui.alert("You appear to be missing libjpeg. Install it?", confirm=True):