From 5bc4223984d7f8fe5a6ffe15a6eb8575ec643cd0 Mon Sep 17 00:00:00 2001 From: Hurrison Date: Fri, 26 Apr 2024 14:41:17 +0800 Subject: [PATCH] fix: The variable 'wisdomFilePath' is already a complete path constructed with 'config_directory'. Joining it again with 'current_directory' could lead to an incorrect path. The variable 'wisdomFilePath' is already a complete path constructed with 'config_directory'. Joining it again with 'current_directory' could lead to an incorrect path. --- installer/client/cli/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/client/cli/utils.py b/installer/client/cli/utils.py index b145207..7bc7eb0 100644 --- a/installer/client/cli/utils.py +++ b/installer/client/cli/utils.py @@ -172,7 +172,7 @@ class Standalone: else: user = input_data user_message = {"role": "user", "content": f"{input_data}"} - wisdom_File = os.path.join(current_directory, wisdomFilePath) + wisdom_File = wisdomFilePath buffer = "" system = "" if self.pattern: