mirror of
https://github.com/jdegenstein/jmwright-CQ-Editor.git
synced 2026-01-07 15:15:50 +01:00
Incorporate run.py into __main__.py for setuptools
setuptools creates a broken cq-editor.exe that has a non-working ipython console
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
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())
|
||||
|
||||
NAME = 'CQ-editor'
|
||||
|
||||
#need to initialize QApp here, otherewise svg icons do not work on windows
|
||||
|
||||
Reference in New Issue
Block a user