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 adcc3d89..53e40853 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 eaa4ffb0..25a8ba5b 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",