From 6faed8e5d6e0db52f5006105405295d7850d547d Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sat, 10 Jan 2009 19:08:54 -0600 Subject: [PATCH] add note about module loading method --- modules/catalyst/util.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.26.2