fix platform identification when running CLI under Win32 python3
authorGP Orcullo <kinsamanka@gmail.com>
Thu, 10 Nov 2022 10:45:40 +0800
branchpython3
changeset 3780 fdd7f9938e59
parent 3779 31c9409a5841
child 3781 25195da82745
fix platform identification when running CLI under Win32
ProjectController.py
--- a/ProjectController.py	Wed Nov 09 22:17:13 2022 +0800
+++ b/ProjectController.py	Thu Nov 10 10:45:40 2022 +0800
@@ -114,7 +114,7 @@
         return path
 
     def findCmd(self):
-        cmd = "iec2c" + (".exe" if wx.Platform == '__WXMSW__' else "")
+        cmd = "iec2c" + (".exe" if os.name == 'nt' else "")
         paths = [
             os.path.join(base_folder, "matiec")
         ]