From cf8ca0ba62e78e70b7621b0c81bf7c031eabe3ac Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 29 Jul 2013 22:14:19 -0700 Subject: gras: simplfy factory w/ macros and namespace --- python/gras/GRAS_Loader.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/gras/GRAS_Loader.py') diff --git a/python/gras/GRAS_Loader.py b/python/gras/GRAS_Loader.py index b70bc60..cc73d9b 100644 --- a/python/gras/GRAS_Loader.py +++ b/python/gras/GRAS_Loader.py @@ -2,6 +2,7 @@ import os import sys +import traceback #try to import module #http://effbot.org/zone/import-string.htm @@ -15,6 +16,7 @@ def __try_module_import(filename): module = __import__(module_name) except Exception as ex: print 'Could not import', filename, ex + print traceback.format_exc() finally: sys.path[:] = path # restore -- cgit