diff options
| author | ianb <devnull@localhost> | 2005-05-18 07:24:57 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-05-18 07:24:57 +0000 |
| commit | 430c3392dc166a4f9bec48f70c8bf7b6b140560d (patch) | |
| tree | c1e8b2e3e06c24bf330994464e55527f74560a61 /paste | |
| parent | e89168b599821bf710ce1f3dbb7c41faef88f76a (diff) | |
| download | paste-430c3392dc166a4f9bec48f70c8bf7b6b140560d.tar.gz | |
Add .plugin_name attribute to plugin modules
Diffstat (limited to 'paste')
| -rw-r--r-- | paste/util/plugin.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/paste/util/plugin.py b/paste/util/plugin.py index 450a6e4..b1863cd 100644 --- a/paste/util/plugin.py +++ b/paste/util/plugin.py @@ -50,7 +50,9 @@ def load_plugin_module(dir, dir_package, name, name_extension=''): module_name = parse_txt_plugin(os.path.join(dir, txt_name)) else: module_name = dir_package + '.' + name + name_extension - return import_string.import_module(module_name) + module = import_string.import_module(module_name) + module.plugin_name = name + return module def parse_txt_plugin(fn): f = open(fn) |
