Skip to content

Commit

Permalink
Fixed chdir backport
Browse files Browse the repository at this point in the history
  • Loading branch information
vadim0x60 committed Oct 13, 2023
1 parent 78bf9d7 commit 210e091
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion programlib/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
from uuid import uuid4
from pathlib import Path
from itertools import zip_longest
from contextlib_chdir import chdir

try:
from contextlib import chdir
except ImportError:
from contextlib_chdir import chdir

from programlib import Agent, language_, Terminal

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pexpect = "^4.8.0"
gym = "^0.26.2"
numpy = "^1.24.2"
pyte = "^0.8.0"
contextlib-chdir = "^1.0.2"
contextlib-chdir = {version = "^1.0.2", python = "<3.11"}


[build-system]
Expand Down

0 comments on commit 210e091

Please sign in to comment.