mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
aider: Added path_components variable to store the split path.
# Context: USER: after relpath, split path into a list of its components ASSISTANT: ```python aider/ctags.py <<<<<<< ORIGINAL path = os.path.relpath(path, os.getcwd()) ======= path = os.path.relpath(path, os.getcwd()) path_components = path.split(os.sep) >>>>>>> UPDATED ```
This commit is contained in:
parent
cceb7c3bef
commit
06a33bc1b1
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ def get_tags(filename):
|
|||
last += ' ' + signature
|
||||
|
||||
path = os.path.relpath(path, os.getcwd())
|
||||
path_components = path.split(os.sep)
|
||||
|
||||
res = []
|
||||
if scope:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue