Skip to content

Commit

Permalink
add mkdir (All-Hands-AI#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufansong authored Mar 28, 2024
1 parent 94120f2 commit dedd09f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions opendevin/sandbox/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ def __init__(
else:
self.instance_id = str(uuid.uuid4())
if workspace_dir is not None:
assert os.path.exists(
workspace_dir
), f"Directory {workspace_dir} does not exist."
os.makedirs(workspace_dir, exist_ok=True)
# expand to absolute path
self.workspace_dir = os.path.abspath(workspace_dir)
else:
Expand Down

0 comments on commit dedd09f

Please sign in to comment.