From dbef81316ddf351e8e9663fb85e8dafb9a2e46d9 Mon Sep 17 00:00:00 2001 From: TLSM Date: Mon, 19 Sep 2022 23:26:43 -0400 Subject: [PATCH] cli.py: fix startup operations using wrong WD. --- files/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/cli.py b/files/cli.py index 6f5f7c38f..754685650 100644 --- a/files/cli.py +++ b/files/cli.py @@ -1,7 +1,3 @@ -from .__main__ import app, db_session, cache -from flask import g -import files.helpers.cron - import os from pathlib import Path @@ -9,6 +5,10 @@ from pathlib import Path # the WD is . NOTE: Change this if cli.py is ever moved. os.chdir(Path(__file__).parent.parent) +from .__main__ import app, db_session, cache +from flask import g +import files.helpers.cron + #from flask_migrate import Migrate #from flask_sqlalchemy import SQLAlchemy #import files.classes