load project-wide variables

This commit is contained in:
waltem01 2024-03-13 13:03:09 +01:00
parent f111c7330b
commit 2a16383fea

View File

@ -8,10 +8,15 @@ import io
from flask import Flask, request, jsonify
from flask_cors import CORS, cross_origin
from dotenv import load_dotenv
from waitress import serve
from pathlib import Path
import time, threading
env_path = Path('..') / '.env'
load_dotenv(dotenv_path=env_path)
api = Flask(__name__)
cors = CORS(api)