Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import sys
import os
try:
from prom2teams.app.api import app as application
except ImportError:
sys.path.append(os.path.abspath('./'))
from prom2teams.app.api import app as application
if __name__ == "__main__":
host = application.config['HOST']
port = int(application.config['PORT'])
application.run(host=host, port=port)