diff options
Diffstat (limited to 'src/tdedesigner.py')
-rw-r--r-- | src/tdedesigner.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tdedesigner.py b/src/tdedesigner.py index c96fa86..93cb6bd 100644 --- a/src/tdedesigner.py +++ b/src/tdedesigner.py @@ -15,11 +15,11 @@ # # ########################################################################### -import __builtin__ +import builtins as __builtin__ import tqtuicompiler python_import = __builtin__.__import__ -def load(*args): - tqtuicompiler.DynamicImport(args,True) - return apply(python_import,args) +def load(name, glob = None, loc = None, fromlist = tuple(), level = 0): + tqtuicompiler.DynamicImport((name,),True) + return python_import(name, glob, loc, fromlist, level) __builtin__.__import__ = load |