# HG changeset patch # User laurent # Date 1251794510 -7200 # Node ID 50f2069a06b38f31f46d54986c89bb197f9c925a # Parent 9ae15ab058f3c4e53e9da4707e5e0e39621b198c Bug on windows when trying to open wxglade generated 'hmi.py' file fixed diff -r 9ae15ab058f3 -r 50f2069a06b3 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())