mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
avoid useless / prefix
This commit is contained in:
parent
020c276ecf
commit
4366de4080
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ def split_path(path, root_dname):
|
|||
|
||||
|
||||
def fname_to_components(fname, with_colon):
|
||||
path_components = os.path.split(fname)
|
||||
path_components = fname.split(os.sep)
|
||||
res = [pc + os.sep for pc in path_components[:-1]]
|
||||
if with_colon:
|
||||
res.append(path_components[-1] + ":")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue