mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
Import os and remove duplicate import in coder.py.
This commit is contained in:
parent
fa68d98ab7
commit
5b8aec7862
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
import traceback
|
import traceback
|
||||||
|
@ -64,8 +65,6 @@ class Coder:
|
||||||
self.show_diffs = show_diffs
|
self.show_diffs = show_diffs
|
||||||
|
|
||||||
def find_common_root(self):
|
def find_common_root(self):
|
||||||
import os
|
|
||||||
|
|
||||||
common_prefix = os.path.commonprefix(list(self.fnames))
|
common_prefix = os.path.commonprefix(list(self.fnames))
|
||||||
self.root = os.path.dirname(common_prefix)
|
self.root = os.path.dirname(common_prefix)
|
||||||
self.console.print(f"[red]Common root directory: {self.root}")
|
self.console.print(f"[red]Common root directory: {self.root}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue