From b77e7367118dd8b29d8485c39182c02e48cbf44c Mon Sep 17 00:00:00 2001 From: AirportR Date: Tue, 5 Mar 2024 17:21:23 +0800 Subject: [PATCH] :bug: Fixed --- botmodule/init_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/botmodule/init_bot.py b/botmodule/init_bot.py index f2a46e02..ecf0a7a0 100644 --- a/botmodule/init_bot.py +++ b/botmodule/init_bot.py @@ -107,9 +107,9 @@ def init_dir(): def init_permission(): if sys.platform != "win32": try: - status = os.system(f"chmod +x {CLASH_PATH}") + status = os.system(f"chmod +x {config.get_clash_path()}") if status != 0: - raise OSError(f"Failed to execute command: chmod +x {CLASH_PATH}") + raise OSError(f"Failed to execute command: chmod +x {config.get_clash_path()}") except OSError as o: print(o)