plugger.py
changeset 313 ef0b303d9535
parent 312 8a702213ce51
child 321 5a4e6278a18b
equal deleted inserted replaced
312:8a702213ce51 313:ef0b303d9535
  1019         wxgfile=self._getWXGLADEpath()
  1019         wxgfile=self._getWXGLADEpath()
  1020         if os.path.exists(wxgfile):
  1020         if os.path.exists(wxgfile):
  1021             hmipyfile=os.path.join(self._getBuildPath(),"hmi.py")
  1021             hmipyfile=os.path.join(self._getBuildPath(),"hmi.py")
  1022             if wx.Platform == '__WXMSW__':
  1022             if wx.Platform == '__WXMSW__':
  1023                 wxgfile = "\"%s\""%wxgfile
  1023                 wxgfile = "\"%s\""%wxgfile
  1024                 hmipyfile = "\"%s\""%hmipyfile
  1024                 _hmipyfile = "\"%s\""%hmipyfile
  1025             self.launch_wxglade(['-o', hmipyfile, '-g', 'python', wxgfile], wait=True)
  1025             else:
       
  1026                 _hmipyfile = hmipyfile
       
  1027             self.launch_wxglade(['-o', _hmipyfile, '-g', 'python', wxgfile], wait=True)
  1026             res += (("hmi.py", file(hmipyfile,"rb")),)
  1028             res += (("hmi.py", file(hmipyfile,"rb")),)
  1027 
  1029 
  1028         return res
  1030         return res
  1029 
  1031 
  1030     
  1032