Преглед на файлове

- if FlatCAM is not run with Python version >= 3.5 it will exit.

Marius Stanciu преди 5 години
родител
ревизия
c13721184c
променени са 2 файла, в които са добавени 17 реда и са изтрити 0 реда
  1. 13 0
      FlatCAM.py
  2. 4 0
      README.md

+ 13 - 0
FlatCAM.py

@@ -32,6 +32,19 @@ if __name__ == '__main__':
     # NOTE: Never talk to the GUI from threads! This is why I commented the above.
     freeze_support()
 
+    # Supported Python version is >= 3.5
+    if sys.version_info.major >= 3:
+        if sys.version_info.minor >= 5:
+            pass
+        else:
+            print("FlatCAM BETA uses PYTHON 3. The version minimum is 3.5\n"
+                  "Your Python version is: %s" % str(sys.version_info))
+            os._exit(0)
+    else:
+        print("FlatCAM BETA uses PYTHON 3. The version minimum is 3.5\n"
+              "Your Python version is: %s" % str(sys.version_info))
+        os._exit(0)
+
     debug_trace()
     VisPyPatches.apply_patches()
 

+ 4 - 0
README.md

@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
 
 =================================================
 
+10.04.2020 
+
+- if FlatCAM is not run with Python version >= 3.5 it will exit.
+
 9.4.2020 
 
 - fixed the Tcl Command Delete to have an argument -f that will force deletion evading the popup (if the popup is enabled). The sme command without a name now will delete all objects