Skip to content

Instantly share code, notes, and snippets.

@eyllanesc
Created Oct 19, 2019
Embed
What would you like to do?
Qt.py patch
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