Djabx
Djabx

Reputation: 745

How to manage many src directories in python vscode?

I've a python project structure like this:

root/
  src/
    shared-libs/
      Pipenv
    app1/
      Pipenv
    app2/
      Pipenv

Where:

My problem is how can I configure VSCode to enable completion on modules available in shared-libs and in my Pipenv ?

Upvotes: 1

Views: 214

Answers (1)

Brett Cannon
Brett Cannon

Reputation: 16110

If you're just after completion, see the python.autoComplete.extraPaths setting. If you want packages that are installed as part of your virtual environment in pipenv, then you need to make sure that you have specified the virtual environment as your Python interpreter (explicit support for pipenv will be in the next release, scheduled some time during the week of March 5).

Upvotes: 1

Related Questions