Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import sys
- activate_this = '/home/ybenzaki/python-programming/flask-rest-example/env/bin/activate_this.py'
- """
- with open(activate_this) as file_:
- exec(file_.read(), dict(__file__=activate_this))
- """
- execfile(activate_this, dict(__file__=activate_this))
- ##Replace the standard out
- sys.stdout = sys.stderr
- ##Add this file path to sys.path in order to import settings
- sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
- ##Add this file path to sys.path in order to import app
- sys.path.append('/home/ybenzaki/python-programming/flask-rest-example/')
- ##Create appilcation for our app
- #from app import app as application
- import app from app as application
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement