mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
chdir into the temp test dir
This commit is contained in:
parent
a2547d02c1
commit
331638dd89
1 changed files with 2 additions and 7 deletions
|
@ -57,17 +57,14 @@ def main(tempdir):
|
|||
dirname = sys.argv[1]
|
||||
|
||||
fnames = create_temp_repo(dirname, tempdir)
|
||||
os.chdir(tempdir)
|
||||
|
||||
tempdir = Path(tempdir)
|
||||
|
||||
instructions = (tempdir / "docs/instructions.md").read_text()
|
||||
instructions = Path("docs/instructions.md").read_text()
|
||||
|
||||
instructions += (
|
||||
"\n\n=====\n\nModify these files according to the above instructions: " + " ".join(fnames)
|
||||
)
|
||||
|
||||
fnames = [str(tempdir / fn) for fn in fnames]
|
||||
|
||||
io = InputOutput(
|
||||
pretty=True,
|
||||
yes=False,
|
||||
|
@ -75,8 +72,6 @@ def main(tempdir):
|
|||
|
||||
main_model = models.Model("gpt-3.5-turbo")
|
||||
|
||||
dump(fnames)
|
||||
|
||||
coder = Coder.create(
|
||||
main_model,
|
||||
None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue