If I do python3 -c "import os; print(os.getcwd())" it gives me correct current working directory.
python3 -c "import os; print(os.getcwd())"
But if I print it in the code from the projects module it gives me /usr/local/Cellar/[email protected]/3.7.9/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/Resources
/usr/local/Cellar/[email protected]/3.7.9/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/Resources
What can be a reason of working dir override?
2.1m questions
2.1m answers
60 comments
57.0k users