• sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    4 months ago

    Anyone have a good solution for projects with multiple sub-projects? My structure is like this:

    • root - no venv
      • project_a
        • .venv
        • app/
      • project_b
        • .venv
        • app/

    To get completions to work, I need to manually switch venvs since each uses imports like app.a.b.c. But I frequently work on multiple projects at the same time, so I’d like it to switch venvs based on where the file lives.

    Anyone know if that’s possible? I’m probably missing something obvious since this seems like a fairly common thing.