--- 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())