diff options
author | Stefano <l.stickell@yahoo.it> | 2013-07-21 18:03:19 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-07-21 18:03:19 +0200 |
commit | 6520b04c328c41e19ae663498d4d5b92a2f8c3d5 (patch) | |
tree | 422463c08118443f3ffe8dd58e4214fd2545c0be /pavement.py | |
parent | More replace rules in paver (diff) | |
download | pyload-6520b04c328c41e19ae663498d4d5b92a2f8c3d5.tar.xz |
Replace rule Hook -> Addon
Diffstat (limited to 'pavement.py')
-rw-r--r-- | pavement.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pavement.py b/pavement.py index 4d1250a46..f2a59812a 100644 --- a/pavement.py +++ b/pavement.py @@ -57,6 +57,7 @@ xargs = ["--language=Python", "--add-comments=L10N", # Modules replace rules module_replace = [ ('from module.plugins.Hoster import Hoster', 'from pyload.plugins.Hoster import Hoster'), +('from module.plugins.Hook import Hook', 'from pyload.plugins.Addon import Addon'), ('from module.common.json_layer import json_loads', 'from pyload.utils import json_loads'), ('from module.utils import parseFileSize', 'from pyload.utils import parseFileSize'), ('from module.utils import save_join, fs_encode', 'from pyload.utils.fs import save_join, fs_encode'), @@ -265,6 +266,8 @@ def replace_module_imports(): f.close() for rule in module_replace: content = content.replace(rule[0], rule[1]) + if '/addons/' in path: + content = content.replace('(Hook):', '(Addon):') f = open(path, 'w') f.write(content) f.close() |