pylint
should handle python.linting.cwd
settings
#215
Labels
feature-request
Request for new features or functionality
info-needed
Issue requires more information from poster
needs community feedback
In a multi-language project there could be a setup where the python source folder does not declare any
__init__.py
file and thus it is not a package from which imports can be performed.In this example, since the sole python part is under
django_project
thenDJANGO_SETTINGS_MODULE
is set asproject.settings
.Thus if using pylint-django than in
.pylintrc
or via commandline I will usedjango-settings-module=project.settings
.But as of now this fails with a
ModuleNotFoundError: No module named 'project'
since server CWD isworkspace
, thus the python interpreter cannot see any package which is in thedjango_project
folder.If the server uses
python.linting.cwd
this setting could be used to adjust the CWD and thus enabling the interpreter to discover contained packages.The text was updated successfully, but these errors were encountered: