There is some python code at my company that uses sys.path[0] in some file paths. Generally, everybody's sys.path[0] points to c:\\<user.name>\\workspace
and I believe mine used to as well. However, now my sys.path[0] is c:\\users\\<user.name>\\repos\\venv\\lib\\site-packages\\git\\ext\\gitdb
so obviously these paths are now incorrect on my local and causing errors.
My questions are what would cause this change in my local sys.path and if it is bad practice to use sys.path because of situations like this. What should we use in this case instead?
This is all for python code running on a flask server.