mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
add mkdir (#317)
This commit is contained in:
parent
94120f2b5d
commit
dedd09fdf5
@ -94,9 +94,7 @@ class DockerInteractive:
|
||||
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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user