-
-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Couldn't the logic be something like this? If
pythonPathhas been resolved to something in a virtualenv (e.g..venv/bin/python). Storeconst venvBinPath = path.dirname(pythonPath). And then when runningmypyyou first trypath.join(venvBinPath, 'mypy'). And if that fails, look in$PATH?
You could maybe even do that logic during startup and save the absolute path to the binary so you don't have to run a subprocess twice in the global case.
Originally posted by @lithammer in #917 (comment)
lithammer
Metadata
Metadata
Assignees
Labels
No labels