Issue
Using the PyCharm IDE, when setting up an external tool, how can you set up the external tools with a path relative to use the current virtual env defaults.?
An example being pylint - where I'd want the virtual env version and not the system one to run.
Solution
There's JDKPath macro you can use which points to the executable of the interpreter set for a project. You can combine this with the fact that many tools can be run by directly running their module(s) using the -m
option of interpreter. Also there's issue PY-2734 New useful macros in external tools everyone can vote on.
Answered By - Piotr Dobrogost