beremiz

11a82fbbac46
Parents 6eb074f0dae9
Children c44484c3429f
Bug when try to launch wxGlade on Windows fixed
  • +6 -4
    plugger.py
  • --- a/plugger.py Mon Jan 19 17:08:17 2009 +0100
    +++ b/plugger.py Tue Jan 20 15:04:14 2009 +0100
    @@ -985,12 +985,14 @@
    else:
    return None
    - def launch_wxglade(self,options, wait=False):
    + def launch_wxglade(self, options, wait=False):
    from wxglade import __file__ as fileName
    - path = os.path.dirname(fileName)
    - glade = os.path.join(path,'wxglade.py')
    + path = os.path.dirname(fileName)
    + glade = os.path.join(path, 'wxglade.py')
    + if wx.Platform == '__WXMSW__':
    + glade = "\"%s\""%glade
    mode = {False:os.P_NOWAIT, True:os.P_WAIT}[wait]
    - os.spawnv(mode,sys.executable,[sys.executable]+[glade]+options)
    + os.spawnv(mode, sys.executable, ["\"%s\""%sys.executable] + [glade] + options)
    #######################################################################
    #