ProjectController.py
branchpython3
changeset 3780 fdd7f9938e59
parent 3778 296e459efdfb
child 3810 eafb8f000584
equal deleted inserted replaced
3779:31c9409a5841 3780:fdd7f9938e59
   112                 path = p
   112                 path = p
   113                 break
   113                 break
   114         return path
   114         return path
   115 
   115 
   116     def findCmd(self):
   116     def findCmd(self):
   117         cmd = "iec2c" + (".exe" if wx.Platform == '__WXMSW__' else "")
   117         cmd = "iec2c" + (".exe" if os.name == 'nt' else "")
   118         paths = [
   118         paths = [
   119             os.path.join(base_folder, "matiec")
   119             os.path.join(base_folder, "matiec")
   120         ]
   120         ]
   121         path = self.findObject(
   121         path = self.findObject(
   122             paths, lambda p: os.path.isfile(os.path.join(p, cmd)))
   122             paths, lambda p: os.path.isfile(os.path.join(p, cmd)))