I am running Python 2.5.
This is my folder tree:
ptdraft/ nib.py simulations/ life/ life.py
(I also have __init
__init
Here is more generic solution that includes the parent directory into sys.path (works for me):
import os.path, sys sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))