983 if builder is not None: |
983 if builder is not None: |
984 return builder.GetBinaryCodeMD5() |
984 return builder.GetBinaryCodeMD5() |
985 else: |
985 else: |
986 return None |
986 return None |
987 |
987 |
988 def launch_wxglade(self,options, wait=False): |
988 def launch_wxglade(self, options, wait=False): |
989 from wxglade import __file__ as fileName |
989 from wxglade import __file__ as fileName |
990 path = os.path.dirname(fileName) |
990 path = os.path.dirname(fileName) |
991 glade = os.path.join(path,'wxglade.py') |
991 glade = os.path.join(path, 'wxglade.py') |
|
992 if wx.Platform == '__WXMSW__': |
|
993 glade = "\"%s\""%glade |
992 mode = {False:os.P_NOWAIT, True:os.P_WAIT}[wait] |
994 mode = {False:os.P_NOWAIT, True:os.P_WAIT}[wait] |
993 os.spawnv(mode,sys.executable,[sys.executable]+[glade]+options) |
995 os.spawnv(mode, sys.executable, ["\"%s\""%sys.executable] + [glade] + options) |
994 |
996 |
995 ####################################################################### |
997 ####################################################################### |
996 # |
998 # |
997 # C CODE GENERATION METHODS |
999 # C CODE GENERATION METHODS |
998 # |
1000 # |