import - Python: Importing modules from parent folder - Stack Overflow
Python: Importing modules from parent folder
import - Python: Importing modules from parent folder - Stack Overflow
hat's wrong with just
import ptdraft.nib
Update:
It seems that the problem is not related to the module being in a parent directory or anything like that.
You need to add the directory that contains
ptdraft
to PYTHONPATHYou said that
import nib
worked with you, that probably means that you addedptdraft
itself (not its parent) to PYTHONPATH.
import - Python: Importing modules from parent folder - Stack Overflow
from ... import nib