- fixed issue when rebooting from within in cx_freezed state (it issued a startup arg with the path to FlatCAM.exe but that triggered the last sys.exit(2) that I had in the App.args_at_startup()) - modified

- modified the make_win script for the presence of MatPlotLib - removed as it was unnecessary
This commit is contained in:
Marius Stanciu
2019-09-26 21:49:58 +03:00
committed by Marius
parent ac096fadbb
commit 0444b901bb
2 changed files with 7 additions and 3 deletions

View File

@@ -2767,8 +2767,12 @@ class App(QtCore.QObject):
# if it reached here without already returning then the app was registered with a file that it does not
# recognize therefore we must quit but take into consideration the app reboot from within, in that case
# the args_to_process will contain the path to the FlatCAM.exe (cx_freezed executable)
if 'FlatCAM' not in args_to_process:
sys.exit(2)
for arg in args_to_process:
if 'FlatCAM.exe' in arg:
continue
else:
sys.exit(2)
def set_ui_title(self, name):
"""