mirror of
https://github.com/jdegenstein/jmwright-CQ-Editor.git
synced 2025-12-19 22:24:19 +01:00
revert and keep win32 asyncio
This commit is contained in:
@@ -1,19 +1,12 @@
|
|||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import argparse
|
import argparse
|
||||||
import faulthandler
|
|
||||||
|
|
||||||
from PyQt5.QtWidgets import QApplication
|
|
||||||
|
|
||||||
faulthandler.enable()
|
|
||||||
|
|
||||||
if 'CASROOT' in os.environ:
|
|
||||||
del os.environ['CASROOT']
|
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
||||||
|
|
||||||
|
from PyQt5.QtWidgets import QApplication
|
||||||
|
|
||||||
NAME = 'CQ-editor'
|
NAME = 'CQ-editor'
|
||||||
|
|
||||||
#need to initialize QApp here, otherewise svg icons do not work on windows
|
#need to initialize QApp here, otherewise svg icons do not work on windows
|
||||||
|
|||||||
Reference in New Issue
Block a user