Is this an intended behaviour? #334
-
Hi! I'm trying to use platformdirs for a simple to-do console app. My setup:
Mainly I've been using two functions:
If I run the app from the default OS terminal I get expected paths:
If I try to run it from VSCode terminal I get another paths:
The question is: Is this an indended behaior? That config path is consistent and data path chages depending on a terminal I'm running from? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
https://specifications.freedesktop.org/basedir-spec/latest/ allows environment variables to dictate the paths on Unix. This is explained at the top of the readme https://github.com/tox-dev/platformdirs#the-problem |
Beta Was this translation helpful? Give feedback.
-
For people that might come here later: It is a problem of VSCode, not the platformdirs. There is an open issue about VSCode changing XDG env variables and one comment has a workaround for it. |
Beta Was this translation helpful? Give feedback.
https://specifications.freedesktop.org/basedir-spec/latest/ allows environment variables to dictate the paths on Unix. This is explained at the top of the readme https://github.com/tox-dev/platformdirs#the-problem