add note about module loading method
authorAndrew Gaffney <agaffney@gentoo.org>
Sun, 11 Jan 2009 01:08:54 +0000 (19:08 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Sun, 11 Jan 2009 01:08:54 +0000 (19:08 -0600)
modules/catalyst/util.py

index 639558246b6554e94931e6ca0df48b8f2ae12884..9b191326a5b699145a42c9906ad91e68caa99f24 100644 (file)
@@ -15,6 +15,8 @@ def print_traceback():
 
 def load_module(name):
        try:
+               # I'm not sure if it's better to use imp.load_module() for this, but
+               # it seems to work just fine this way, and it's easier.
                exec("import " + name)
                return sys.modules[name]
        except Exception: