We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1ad888d + 845cf79 commit 2c1276aCopy full SHA for 2c1276a
compute_worker/compute_worker.py
@@ -925,16 +925,16 @@ def _get_host_path(self, *paths):
925
# Take our list of paths and smash 'em together
926
path = os.path.join(*paths)
927
928
+ # Create if necessary
929
+ os.makedirs(path, exist_ok=True)
930
+
931
# pull front of path, which points to the location inside the container
932
path = path[len(Settings.BASE_DIR):]
933
934
# add host to front, so when we run commands in the container on the host they
935
# can be seen properly
936
path = os.path.join(Settings.HOST_DIRECTORY, path)
937
- # Create if necessary
- os.makedirs(path, exist_ok=True)
-
938
return path
939
940
async def _run_program_directory(self, program_dir, kind):
0 commit comments