How to refer to relative paths of resources when working with a code repository
We are working with a code repository which is deployed to both Windows and Linux – sometimes in different directories. How should one of the modules inside the project refer to one of the non-Python resources in the project (CSV files, etc.)? If we do something like: thefile = open(‘test.csv’) or: thefile = open(‘../somedirectory/test.csv’) It … Read more