# HG changeset patch # User Jeff Hammel # Date 1384226338 28800 # Node ID 58eed691dca77b58ae23110fa627edcbfd71e45d # Parent b57de7c38a745e6a53a68755f6556c473246a596 debugging diff -r b57de7c38a74 -r 58eed691dca7 pyloader/factory.py --- a/pyloader/factory.py Thu Jul 28 17:00:03 2011 -0700 +++ b/pyloader/factory.py Mon Nov 11 19:18:58 2013 -0800 @@ -20,9 +20,10 @@ class CircularReferenceError(Exception): """factory has detected a circular reference""" + class PyFactory(object): - # to evaluate arguments as objects + # to evaluate arguments as objects delimeters = ('%(', ')s') def __init__(self, config=None, main=''): diff -r b57de7c38a74 -r 58eed691dca7 pyloader/loader.py --- a/pyloader/loader.py Thu Jul 28 17:00:03 2011 -0700 +++ b/pyloader/loader.py Mon Nov 11 19:18:58 2013 -0800 @@ -12,7 +12,12 @@ def import_dotted_path(module): path = module.split('.') - module = __import__(module) + try: + module = __import__(module) + except: + sys.stderr.write("pyloader: Error importing %s for dotted path %s\n" % (module, path)) + raise + for name in path[1:]: module = getattr(module, name) return module