From b4bd86549ed101e5b286dea17b62080ff9944316 Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Wed, 24 Jan 2024 23:33:19 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20banlist=E6=A8=A1=E7=89=88=E7=A7=BB?= =?UTF-8?q?=E8=87=B3=E6=A0=B9=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- res/templates/banlist-template.py => banlist-template.py | 0 main.py | 2 +- pkg/boot/files.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename res/templates/banlist-template.py => banlist-template.py (100%) diff --git a/res/templates/banlist-template.py b/banlist-template.py similarity index 100% rename from res/templates/banlist-template.py rename to banlist-template.py diff --git a/main.py b/main.py index adcc3d8..53e4085 100644 --- a/main.py +++ b/main.py @@ -16,7 +16,7 @@ sys.path.append(".") def check_file(): # 检查是否有banlist.py,如果没有就把banlist-template.py复制一份 if not os.path.exists('banlist.py'): - shutil.copy('res/templates/banlist-template.py', 'banlist.py') + shutil.copy('banlist-template.py', 'banlist.py') # 检查是否有sensitive.json if not os.path.exists("sensitive.json"): diff --git a/pkg/boot/files.py b/pkg/boot/files.py index eaa4ffb..25a8ba5 100644 --- a/pkg/boot/files.py +++ b/pkg/boot/files.py @@ -7,7 +7,7 @@ import sys required_files = { "config.py": "config-template.py", - "banlist.py": "res/templates/banlist-template.py", + "banlist.py": "banlist-template.py", "tips.py": "tips-custom-template.py", "sensitive.json": "res/templates/sensitive-template.json", "scenario/default.json": "scenario/default-template.json",