Collecting my attempts to improve at tech, art, and life

VS Code pylint needs pylintrc

Tags: python vscode editors

Visual Studio Code doesn’t seem to pick up my environment’s PYTHONPATH when running pylint. Makes project-local modules a headache. The solution: put it in your pylint config.

${workspaceFolder}/.pylintrc

[MASTER]
init-hook='import sys; sys.path.append("pylib")'

Okay, I got more planned for today than messing with code. Back to that other stuff.


Got a comment? A question? More of a comment than a question?

Talk to me about this page on: mastodon

Added to vault 2024-01-15. Updated on 2024-01-26