diff options
author | Sean B. Palmer <http://inamidst.com/sbp/> | 2009-06-18 14:20:12 +0100 |
---|---|---|
committer | Sean B. Palmer <http://inamidst.com/sbp/> | 2009-06-18 14:20:12 +0100 |
commit | 5d48dd8ca7a317daf772d0627f0843d315c49876 (patch) | |
tree | 65244001e5d3a118cf7e29aeb5c5612016018551 /modules/reload.py | |
parent | b35681c7593bc2935d1421d4de342a1453878445 (diff) | |
download | bot-5d48dd8ca7a317daf772d0627f0843d315c49876.tar.gz bot-5d48dd8ca7a317daf772d0627f0843d315c49876.tar.bz2 bot-5d48dd8ca7a317daf772d0627f0843d315c49876.zip |
Run setup when reloading a module.
Diffstat (limited to 'modules/reload.py')
-rwxr-xr-x | modules/reload.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/reload.py b/modules/reload.py index a48b625..fc508a6 100755 --- a/modules/reload.py +++ b/modules/reload.py @@ -25,6 +25,8 @@ def f_reload(phenny, input): except ImportError: module = getattr(__import__('opt.' + name), name) reload(module) + if hasattr(module, 'setup'): + module.setup(phenny) if hasattr(module, '__file__'): import os.path, time |