We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f2d763 commit 90b45bbCopy full SHA for 90b45bb
run.py
@@ -1,15 +1,15 @@
1
-import os, sys, asyncio
+import sys
2
import faulthandler
3
4
-faulthandler.enable()
5
-
6
-if "CASROOT" in os.environ:
7
- del os.environ["CASROOT"]
+# PyInstaller with console=False sets sys.stdout/stderr to None on Windows
+if sys.stdout is None:
+ sys.stdout = open("nul", "w")
+if sys.stderr is None:
8
+ sys.stderr = open("nul", "w")
9
-if sys.platform == "win32":
10
- asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
+faulthandler.enable()
11
12
-from cq_editor.__main__ import main
+from cq_editor.cqe_run import main
13
14
if __name__ == "__main__":
15
main()
0 commit comments