moved schedule import after venv sitepackage path set

This commit is contained in:
Daniel Schick 2023-11-22 10:48:27 +01:00
parent 66bfd326cc
commit 721baa3a06

View File

@ -2,12 +2,11 @@ import os
import sys
import logging
# import the schedule library, which handles routine jobs
import schedule
sys.path.insert(0, '/var/www/brecal_devel/src/server')
sys.path.insert(0, '/var/www/venv/lib/python3.10/site-packages/')
import schedule
# set the key
os.environ['SECRET_KEY'] = 'zdiTz8P3jXOc7jztIQAoelK4zztyuCpJ'
@ -18,4 +17,4 @@ logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
# Import and run the Flask app
from BreCal import create_app
application = create_app()
application = create_app()