mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
feat: Use safe_abs_path in find_common_root function
This commit is contained in:
parent
1a50a8cc5e
commit
5e93dcf2cc
1 changed files with 3 additions and 3 deletions
|
@ -274,11 +274,11 @@ class Spinner:
|
||||||
|
|
||||||
def find_common_root(abs_fnames):
|
def find_common_root(abs_fnames):
|
||||||
if len(abs_fnames) == 1:
|
if len(abs_fnames) == 1:
|
||||||
return os.path.dirname(list(abs_fnames)[0])
|
return safe_abs_path(os.path.dirname(list(abs_fnames)[0]))
|
||||||
elif abs_fnames:
|
elif abs_fnames:
|
||||||
return os.path.commonpath(list(abs_fnames))
|
return safe_abs_path(os.path.commonpath(list(abs_fnames)))
|
||||||
else:
|
else:
|
||||||
return os.getcwd()
|
return safe_abs_path(os.getcwd())
|
||||||
|
|
||||||
|
|
||||||
def check_pip_install_extra(io, module, prompt, pip_install_cmd):
|
def check_pip_install_extra(io, module, prompt, pip_install_cmd):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue