- made FlatCAM so that whenever an associated file is double clicked, if there is an opened instance of FlatCAM, the file will be opened in the first instance without launching a new instance of FlatCAM. If FlatCAM is launched again it will spawn a new process (hopefully it will work when freezed).

This commit is contained in:
Marius Stanciu
2019-08-27 03:59:36 +03:00
committed by Marius
parent 9a8fa1ac4c
commit bb9c35a527
3 changed files with 58 additions and 8 deletions

View File

@@ -4,9 +4,10 @@ import os
from PyQt5 import QtWidgets
from PyQt5.QtCore import QSettings, Qt
from FlatCAMApp import App
from multiprocessing import freeze_support
from flatcamGUI import VisPyPatches
from multiprocessing import freeze_support
if sys.platform == "win32":
# cx_freeze 'module win32' workaround
pass
@@ -58,5 +59,4 @@ if __name__ == '__main__':
app.setAttribute(Qt.AA_EnableHighDpiScaling, False)
fc = App()
sys.exit(app.exec_())