diff options
Diffstat (limited to 'sources/shiboken2/libshiboken/signature.cpp')
-rw-r--r-- | sources/shiboken2/libshiboken/signature.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sources/shiboken2/libshiboken/signature.cpp b/sources/shiboken2/libshiboken/signature.cpp index da9c56c62..d6c26ac79 100644 --- a/sources/shiboken2/libshiboken/signature.cpp +++ b/sources/shiboken2/libshiboken/signature.cpp @@ -445,8 +445,11 @@ static const char PySide_PythonCode[] = with open(__file__) as _f: exec(compile(_f.read(), __file__, 'exec')) except Exception as e: - print('Exception:', e) - traceback.print_exc(file=sys.stdout) + try: + from shiboken2.support.signature import loader + except: + print('Exception:', e) + traceback.print_exc(file=sys.stdout) globals().update(locals()) )~"; |