I've got the following file structure:
I'm trying to initialize some objects in main.py
that belong to modules in the Listener
, Parser
and Configurations
folders.
I understand I can't just write import listener
since it's not in the same path.
What simple ways are there for the imports to work without adding the paths to the PYTHONPATH
env variable?
Is there a way to make it work on any machine "out of the box" without the need to add the paths to PYTHONPATH
or any solution like that? Preferably something with a relative path like in C++?