X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=wx%2Fgui%2Fplugin.py;h=ad52e459e2b2b10101ee1aeaa19f275d429ce9d3;hp=e20a87c2bc1cf92efb9e6bac0fa75351667464e5;hb=0b7e2e66ed62a28bf4e977c5e9a5dc601b2fcae2;hpb=ddb6b1f242031dc55e52403029ac851cc70bd1f8 diff --git a/wx/gui/plugin.py b/wx/gui/plugin.py index e20a87c..ad52e45 100644 --- a/wx/gui/plugin.py +++ b/wx/gui/plugin.py @@ -55,7 +55,10 @@ class Plugin: #print 'basedir', basedir opj = os.path.join - locations = [os.path.normpath(opj(basedir, '..', prog))] + locations = [ + os.path.normpath(opj(basedir, prog)), + os.path.normpath(opj(basedir, "..", "src", prog)), + ] if "wxMSW" in wx.PlatformInfo: try: system_drive = os.environ['SYSTEMDRIVE'] @@ -69,7 +72,6 @@ class Plugin: opj("c:", os.sep, "swftools", prog), opj("c:", os.sep, "Program Files", "SWFTools", prog), opj(system_drive, os.sep, program_files, "SWFTools", prog), - opj(basedir, prog), ]) else: locations.extend([ @@ -115,7 +117,9 @@ class Plugin: # To avoid an ugly "DOS Window" to show up flags = win32process.CREATE_NO_WINDOW except ImportError: - flags = 0 + # See http://msdn.microsoft.com/en-us/library/ms684863(VS.85).aspx + # for this flag (CREATE_NO_WINDOW) value + flags = 0x08000000 else: flags = 0 output = Popen(cmd, stdin=PIPE, stdout=PIPE,