import os

from configparser import ConfigParser
from flask import Flask
from flask_restful import Api
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from twilio.rest import TwilioRestClient

app = Flask(__name__)

# ENV Vars
try:
  ENV = os.environ['ENV']
  ENV in ('STAGING', 'PRODUCTION')
except:
  raise EnvironmentError('Environmental variable "BROADCAST_ENV" not found or unrecognized value')

basedir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
print(basedir)
app.config.from_pyfile(basedir + '/config.py')

parser = ConfigParser()
api = Api(app)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
tc = TwilioRestClient(
    app.config.get('TWILIO_ACCOUNT_SID'),
    app.config.get('TWILIO_ACCOUNT_AUTH'),
)

# Routes
from app.mod_sms import routes
from app.mod_bot import routes

@@ -494,23 +494,8 @@
 )))%0A
-print(basedir)%0A
 app.

develop forgot to remove a print statement, whoops