From 4669eef9a236f0c58efba4c6c884dc3e2085f069 Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Sat, 11 Feb 2023 16:48:14 -0600 Subject: [PATCH] revert and keep win32 asyncio --- cq_editor/__main__.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/cq_editor/__main__.py b/cq_editor/__main__.py index 7a37e95..973d72a 100644 --- a/cq_editor/__main__.py +++ b/cq_editor/__main__.py @@ -1,19 +1,12 @@ import sys -import os import asyncio import argparse -import faulthandler - -from PyQt5.QtWidgets import QApplication - -faulthandler.enable() - -if 'CASROOT' in os.environ: - del os.environ['CASROOT'] if sys.platform == 'win32': asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) +from PyQt5.QtWidgets import QApplication + NAME = 'CQ-editor' #need to initialize QApp here, otherewise svg icons do not work on windows