From 1c4aea7d70ad2e8ebe58e490eba06fe85a3ca059 Mon Sep 17 00:00:00 2001 From: flaskfarm Date: Tue, 4 Oct 2022 15:04:24 +0900 Subject: [PATCH] test --- lib/framework/init_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/framework/init_main.py b/lib/framework/init_main.py index cf6ff60..d2250f8 100644 --- a/lib/framework/init_main.py +++ b/lib/framework/init_main.py @@ -206,9 +206,9 @@ class Framework: self.config = {} self.config['os'] = platform.system() self.config['flag_system_loading'] = False - self.config['run_flask'] = True if sys.argv[0].endswith('main.py') else False + #self.config['run_flask'] = True if sys.argv[0].endswith('main.py') else False self.config['run_celery'] = True if sys.argv[0].find('celery') != -1 else False - + self.config['run_flask'] = not self.config['run_celery'] self.config['path_app'] = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) if self.config['os'] == 'Windows' and self.config['path_app'][0] != '/': self.config['path_app'] = self.config['path_app'][0].upper() + self.config['path_app'][1:]