Skip to content

Instantly share code, notes, and snippets.

@Maddosaurus
Created September 6, 2018 13:16
Show Gist options
  • Save Maddosaurus/9ddff15846785d7ff0ab1d255d0c28ce to your computer and use it in GitHub Desktop.
Save Maddosaurus/9ddff15846785d7ff0ab1d255d0c28ce to your computer and use it in GitHub Desktop.
Python Pylint fix for E0401 in Visual Studio Code
[MASTER]
init-hook='import sys; sys.path.append("/FQDN/to/your/module/root")'
@Maddosaurus
Copy link
Author

This file is to be placed / merged with your own in the project root folder.
Most important: One mustn't use variables like "~" in the path but give the full path denoted by i.e. pwd.
Try to play around with the exact folder path; VSCode reruns pylint after every change of .pylint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment