I am running Python 2.5.
This is my folder tree:
ptdraft/ nib.py simulations/ life/ life.py
(I also have __init
__init
The pathlib library (included with >= Python 3.4) makes it very concise and intuitive to append the path of the parent directory to the PYTHONPATH:
import sys from pathlib import Path sys.path.append(str(Path('.').absolute().parent))