mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-25 11:31:46 +00:00
load project-wide variables
This commit is contained in:
parent
f111c7330b
commit
2a16383fea
@ -8,10 +8,15 @@ import io
|
|||||||
|
|
||||||
from flask import Flask, request, jsonify
|
from flask import Flask, request, jsonify
|
||||||
from flask_cors import CORS, cross_origin
|
from flask_cors import CORS, cross_origin
|
||||||
|
from dotenv import load_dotenv
|
||||||
from waitress import serve
|
from waitress import serve
|
||||||
|
from pathlib import Path
|
||||||
import time, threading
|
import time, threading
|
||||||
|
|
||||||
|
|
||||||
|
env_path = Path('..') / '.env'
|
||||||
|
load_dotenv(dotenv_path=env_path)
|
||||||
|
|
||||||
api = Flask(__name__)
|
api = Flask(__name__)
|
||||||
cors = CORS(api)
|
cors = CORS(api)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user