https://pantsbuild.org/ logo
t

tall-plastic-15186

12/19/2022, 8:08 PM
Hi all, just a quick question regarding the python interpreter path. I'm using
pyenv
to manage the python version and then dynamically setting
.vscode/settings.json
to
{"python.defaultInterpreterPath": sys.executable}
in order to get autocomplete functionality etc. This path typically points to the venv in the cache directory. Is this right approach or do you recommend another setup for VSCode? Thanks.
e

enough-analyst-54434

12/19/2022, 8:33 PM
Give https://www.pantsbuild.org/docs/setting-up-an-ide a try if you haven't already and report back.
t

tall-plastic-15186

12/19/2022, 8:54 PM
Yep thanks. This path works now: "/dist/export/python/virtualenvs/python-default/3.10.9/bin/python3"