equal
deleted
inserted
replaced
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))) |