mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
with-colon
This commit is contained in:
parent
7b685ce089
commit
020c276ecf
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,10 @@ def split_path(path, root_dname):
|
||||||
def fname_to_components(fname, with_colon):
|
def fname_to_components(fname, with_colon):
|
||||||
path_components = os.path.split(fname)
|
path_components = os.path.split(fname)
|
||||||
res = [pc + os.sep for pc in path_components[:-1]]
|
res = [pc + os.sep for pc in path_components[:-1]]
|
||||||
res.append(path_components[-1] + ":")
|
if with_colon:
|
||||||
|
res.append(path_components[-1] + ":")
|
||||||
|
else:
|
||||||
|
res.append(path_components[-1])
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue