I\'ve got a project where I would like to use some python classes located in other directories.
Example structure:
/dir +../subdirA +../subdirB +../my
first add the relative paths to the pythonpath
import os import sys cwd = os.getcwd() sys.path.append(cwd + '/../subdirA/') sys.path.append(cwd + '/../subdirB/')
then import the modules.