hi everybody,
I have a checker name webapp.py in my current directory. When I used pylint
with param —load-plugins webapp, i got an errer like this:
webapp None
Traceback (most recent call last):
File "/usr/local/bin/pylint", line 11, in <module>
sys.exit(run_pylint())
File "/Library/Python/2.7/site-packages/pylint/__init__.py", line 23, in
run_pylint
Run(sys.argv[1:])
File "/Library/Python/2.7/site-packages/pylint/lint.py", line 1193, in
__init__
linter.load_plugin_modules(self._plugins)
File "/Library/Python/2.7/site-packages/pylint/lint.py", line 469, in
load_plugin_modules
module = load_module_from_name(modname)
File "/Library/Python/2.7/site-packages/astroid/modutils.py", line 135, in
load_module_from_name
return load_module_from_modpath(dotted_name.split('.'), path, use_sys)
File "/Library/Python/2.7/site-packages/astroid/modutils.py", line 178, in
load_module_from_modpath
mp_file, mp_filename, mp_desc = imp.find_module(part, path)
ImportError: No module named webapp
first line is variable part, path in the method
astroid.modutils.load_module_from_modpath
Then I changed the method pylint.lint.load_plugin_modules like this and it well
works well.
My pylint version is 1.4.0 and astroid version is 1.3.2, os is Mac 10.10. Maybe
it’s a bug need to fixed.
Kind regards,
江哲 developer of
www.weizoom.com <http://www.weizoom.com/>
email: [email protected]
_______________________________________________
code-quality mailing list
[email protected]
https://mail.python.org/mailman/listinfo/code-quality