Skip to content

Commit 845cf79

Browse files
committed
creating directory inside the container in the right place.
1 parent 2f437bc commit 845cf79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compute_worker/compute_worker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,16 +884,16 @@ def _get_host_path(self, *paths):
884884
# Take our list of paths and smash 'em together
885885
path = os.path.join(*paths)
886886

887+
# Create if necessary
888+
os.makedirs(path, exist_ok=True)
889+
887890
# pull front of path, which points to the location inside the container
888891
path = path[len(BASE_DIR) :]
889892

890893
# add host to front, so when we run commands in the container on the host they
891894
# can be seen properly
892895
path = os.path.join(HOST_DIRECTORY, path)
893896

894-
# Create if necessary
895-
os.makedirs(path, exist_ok=True)
896-
897897
return path
898898

899899
async def _run_program_directory(self, program_dir, kind):

0 commit comments

Comments
 (0)