I have the following directory structure:
application tests main.py main.py
application/main.py contains some functions.
You must add the application dir to your path:
import sys sys.path.append("/path/to/dir") from app import object
Or from shell:
setenv PATH $PATH:"path/to/dir"
In case you use windows: Adding variable to path in windows.
Or from the command line:
set PATH=%PATH%;C:\path\to\dir