From 0b6ef387e991f82ba3fc88e508a8641ad91b5ce7 Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Sat, 19 Jan 2013 18:57:18 -0500 Subject: [PATCH] Fixed export SWF to be compatible with Windows file paths --- lightningbeam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningbeam.py b/lightningbeam.py index e356951..f38e545 100755 --- a/lightningbeam.py +++ b/lightningbeam.py @@ -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):