From: Andrew Gaffney Date: Sun, 11 Jan 2009 01:08:54 +0000 (-0600) Subject: add note about module loading method X-Git-Tag: CATALYST-2.0.10~3^2~236 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6faed8e5d6e0db52f5006105405295d7850d547d;p=catalyst.git add note about module loading method --- diff --git a/modules/catalyst/util.py b/modules/catalyst/util.py index 63955824..9b191326 100644 --- a/modules/catalyst/util.py +++ b/modules/catalyst/util.py @@ -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: