summaryrefslogtreecommitdiffstats
path: root/src/tqtdesigner.py
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2024-04-20 21:46:29 +0300
committerormorph <roma251078@mail.ru>2024-04-20 21:49:49 +0300
commit69bf5c34cbcf8e94d876f448ee4d8e292cf0d7e3 (patch)
tree6592d5e21472cdfcf74751f935f2629c21c2f5f5 /src/tqtdesigner.py
parent165eef292c68e194aa6e5aa8da13023074efcefd (diff)
downloadpytdeextensions-69bf5c34cbcf8e94d876f448ee4d8e292cf0d7e3.tar.gz
pytdeextensions-69bf5c34cbcf8e94d876f448ee4d8e292cf0d7e3.zip
Fixing tdedesigner and tqtuicompiler modules not working
Python3 compatibility fix Signed-off-by: ormorph <roma251078@mail.ru>
Diffstat (limited to 'src/tqtdesigner.py')
-rw-r--r--src/tqtdesigner.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tqtdesigner.py b/src/tqtdesigner.py
index c31edee..8bf3a33 100644
--- a/src/tqtdesigner.py
+++ b/src/tqtdesigner.py
@@ -15,12 +15,12 @@
# #
###########################################################################
-import __builtin__
+import builtins as __builtin__
import tqtuicompiler
python_import = __builtin__.__import__
-def load(*args):
- tqtuicompiler.DynamicImport(args,False)
- return apply(python_import,args)
+def load(name, glob = None, loc = None, fromlist = tuple(), level = 0):
+ tqtuicompiler.DynamicImport((name,),False)
+ return python_import(name, glob, loc, fromlist, level)
__builtin__.__import__ = load