I have a python project structured like this:
root/
__init__.py
coolstuff.py
moduleA/
__init__.py
myscript.py
When my working directory is moduleA, how can I run myscript.py, knowing that it needs to have access to coolstuff ?
EDIT: I am aware of the $PYTHONPATH solution but I would like to know which other solutions exist
myscriptfrom the working directorymoduleA; doing so will either get me anAttempted relative import in non-packageor aAttempted relative import beyond toplevel package