New to python and not understanding how imports work. I saw something about how you can do a sys.path.append but I don't want to do this because this needs to go into source control and run off multiple different computers with different pathing. How do I simply import a file that is in another folder but within the same project?
My file structure is
- Project
- FolderA
- FileA.py
- FolderB
- SubfolderB
- FileB.py
How do I import FileA.py while inside FileB.py?
This doesn't work because I get back 'No Module named FolderA':
from FolderA import FileA
class FileB():
...