I need to set the PYTHONPATH for a project in Visual Studio Code. I have an .env file specifying the PYTHONPATH. However, since my path consists of a number of directories, I need to use the following on Windows:
PYTHONPATH=./dirA;./dirB;${PYTHONPATH}
But use colon as a separator on Linux
PYTHONPATH=./dirA:./dirB:${PYTHONPATH}
My .env file is stored in the source repository, as I don't want every person working on the project to figure it out by themselves. I tried setting different env files for Linux and Windows, but setting python.envFile.windows caused the Python extension to fail entirely.
How can I set the Visual Studio Code PYTHONPATH once, in a way that works for developers in both Linux and Windows?