Skip to content

Instantly share code, notes, and snippets.

@eyllanesc
Created October 19, 2019 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eyllanesc/890a2a15f3c4f60676298560f8fad917 to your computer and use it in GitHub Desktop.
Save eyllanesc/890a2a15f3c4f60676298560f8fad917 to your computer and use it in GitHub Desktop.
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