projects
/
catalyst.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
598d0ea
)
add note about module loading method
author
Andrew Gaffney
<agaffney@gentoo.org>
Sun, 11 Jan 2009 01:08:54 +0000
(19:08 -0600)
committer
Andrew Gaffney
<agaffney@gentoo.org>
Sun, 11 Jan 2009 01:08:54 +0000
(19:08 -0600)
modules/catalyst/util.py
patch
|
blob
|
history
diff --git
a/modules/catalyst/util.py
b/modules/catalyst/util.py
index 639558246b6554e94931e6ca0df48b8f2ae12884..9b191326a5b699145a42c9906ad91e68caa99f24 100644
(file)
--- 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: