diff options
Diffstat (limited to 'src/tqtdesigner.py')
-rw-r--r-- | src/tqtdesigner.py | 8 |
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 |