From e33fa4480a819fa6fc5095cf9e4ac9f5c41f1912 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 10 May 2023 12:24:43 -0700 Subject: [PATCH] wip: Fixed a bug in `find_common_root` method by replacing `commonprefix` with `commonpath`. --- aider/coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/coder.py b/aider/coder.py index 2d76d702c..33b7d0097 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -69,7 +69,7 @@ class Coder: self.show_diffs = show_diffs def find_common_root(self): - common_prefix = os.path.commonprefix(list(self.fnames)) + common_prefix = os.path.commonpath(list(self.fnames)) self.root = os.path.dirname(common_prefix) self.console.print(f"[red]Common root directory: {self.root}")