Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions compute_worker/compute_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,16 +925,16 @@ def _get_host_path(self, *paths):
# Take our list of paths and smash 'em together
path = os.path.join(*paths)

# Create if necessary
os.makedirs(path, exist_ok=True)

# pull front of path, which points to the location inside the container
path = path[len(Settings.BASE_DIR):]

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

# Create if necessary
os.makedirs(path, exist_ok=True)

return path

async def _run_program_directory(self, program_dir, kind):
Expand Down
Loading