How do I use a relative path in a Python module when the CWD has changed?
How do I use a relative path in a Python module when the CWD has changed? Question: I have a Python module which uses some resources in a subdirectory of the module directory. After searching around on stack overflow and finding related answers, I managed to direct the module to the resources by using something …