wip: Fixed a bug in find_common_root method by replacing commonprefix with commonpath.

This commit is contained in:
Paul Gauthier 2023-05-10 12:24:43 -07:00
parent 7d1d2d14a6
commit e33fa4480a

View file

@ -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}")