import sys sys.path.insert(0,'/opt/flaskapp') from app import app as application