From 9dee6c74b9d39c2153c0280423190277874c44c1 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Mon, 19 Feb 2024 08:42:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dingxin_toolbox_drf/settings.py | 2 +- update/utils/git_util.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dingxin_toolbox_drf/settings.py b/dingxin_toolbox_drf/settings.py index 5677c80..196a454 100644 --- a/dingxin_toolbox_drf/settings.py +++ b/dingxin_toolbox_drf/settings.py @@ -190,7 +190,7 @@ LOGGING = { 'file': { 'level': 'INFO', 'class': 'logging.handlers.RotatingFileHandler', - 'filename': os.path.join(BASE_DIR, "logs/dingxin.log"), + 'filename': os.path.join(BASE_DIR, "logs", "dingxin.log"), 'maxBytes': 300 * 1024 * 1024, 'backupCount': 10, 'formatter': 'verbose' diff --git a/update/utils/git_util.py b/update/utils/git_util.py index 63976ee..25002bc 100644 --- a/update/utils/git_util.py +++ b/update/utils/git_util.py @@ -20,8 +20,8 @@ from dingxin_toolbox_drf import settings class GitUtil: def __init__(self, short_release): self.short_release = short_release - self.local_code_path = os.path.join(settings.BASE_DIR, r'dx\code') - self.cine_sql_path = os.path.join(settings.BASE_DIR, r'dx\sql') + self.local_code_path = os.path.join(settings.BASE_DIR, 'dx', 'code') + self.cine_sql_path = os.path.join(settings.BASE_DIR, 'dx', 'sql') self.db_name = self.get_db_name(self.short_release) self.db_config = { 'host': '172.16.3.112', @@ -142,7 +142,7 @@ class GitUtil: class GitDbUtil: def __init__(self): - self.local_code_path = os.path.join(settings.BASE_DIR, r'dx\code') + self.local_code_path = os.path.join(settings.BASE_DIR, 'dx', 'code') # 获取可用的版本,可用状态需要手动维护数据库 @staticmethod