Commit e277214e authored by Janez K's avatar Janez K

more verbose output on module importer

parent 6b6d6e54
...@@ -50,7 +50,11 @@ def dynamic_import_globals(name, package, localSetAttrFunc): ...@@ -50,7 +50,11 @@ def dynamic_import_globals(name, package, localSetAttrFunc):
try: try:
m = __import__(name, globals(), locals(), ['*']) m = __import__(name, globals(), locals(), ['*'])
except ImportError: except ImportError:
pass import sys, traceback
print "Exception in user code:"
print '-'*60
traceback.print_exc(file=sys.stdout)
print '-'*60
except: except:
import sys, traceback import sys, traceback
print "Exception in user code:" print "Exception in user code:"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment