Bug on windows when trying to open wxglade generated 'hmi.py' file fixed
authorlaurent
Tue, 01 Sep 2009 10:41:50 +0200
changeset 384 50f2069a06b3
parent 383 9ae15ab058f3
child 385 49cd52914a6f
Bug on windows when trying to open wxglade generated 'hmi.py' file fixed
plugins/python/modules/wxglade_hmi/wxglade_hmi.py
--- a/plugins/python/modules/wxglade_hmi/wxglade_hmi.py	Tue Sep 01 10:40:11 2009 +0200
+++ b/plugins/python/modules/wxglade_hmi/wxglade_hmi.py	Tue Sep 01 10:41:50 2009 +0200
@@ -58,8 +58,10 @@
             hmipyfile_path=os.path.join(self._getBuildPath(), "hmi.py")
             if wx.Platform == '__WXMSW__':
                 wxgfile_path = "\"%s\""%wxgfile_path
-                hmipyfile_path = "\"%s\""%hmipyfile_path
-            self.launch_wxglade(['-o', hmipyfile_path, '-g', 'python', wxgfile_path], wait=True)
+                wxghmipyfile_path = "\"%s\""%hmipyfile_path
+            else:
+                wxghmipyfile_path = hmipyfile_path
+            self.launch_wxglade(['-o', wxghmipyfile_path, '-g', 'python', wxgfile_path], wait=True)
             
             hmipyfile = open(hmipyfile_path, 'r')
             runtimefile.write(hmipyfile.read())