Created
October 19, 2019 21:41
-
-
Save eyllanesc/890a2a15f3c4f60676298560f8fad917 to your computer and use it in GitHub Desktop.
Qt.py patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _patch(): | |
import os | |
import sys | |
import importlib.util | |
module_path = os.path.join( | |
os.path.dirname(os.path.realpath(__file__)), "QtSiteConfig.py" | |
) | |
spec = importlib.util.spec_from_file_location("QtSiteConfig", module_path) | |
mod = importlib.util.module_from_spec(spec) | |
sys.modules[spec.name] = mod | |
spec.loader.exec_module(mod) | |
_patch() | |
from Qt import * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment