Skip to content

Commit

Permalink
set new temp directory to mode 777
Browse files Browse the repository at this point in the history
in order to allow sharing it across users, like a standard tmp directory
  • Loading branch information
denisri committed Apr 10, 2024
1 parent 76e517c commit 993c650
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/soma_workflow/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,9 +805,10 @@ def get_shared_temporary_directory(self):
swf_tmp = os.path.join(swf_tmp, 'soma-workflow-tmp')
if not os.path.exists(swf_tmp):
os.makedirs(swf_tmp)
os.chmod(swf_tmp, 0o777)
return swf_tmp
self._shared_temporary_dir = self._config_parser.get(self._resource_id,
OCFG_SHARED_TEMPORARY_DIR)
self._shared_temporary_dir = self._config_parser.get(
self._resource_id, OCFG_SHARED_TEMPORARY_DIR)
if not self._shared_temporary_dir:
# fallback to transfered files dir
self._shared_temporary_dir = self.get_transfered_file_dir()
Expand Down

0 comments on commit 993c650

Please sign in to comment.