Skip to content

Commit

Permalink
making sure the /data/run_dir is r/w for all
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Jan 10, 2024
1 parent 5131827 commit 88f5f3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/staging/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ def initial_staging(self, run_dir: str, run_id: str, staging_type: StagingType)
# make the directory
os.makedirs(run_dir, exist_ok=True)

# make sure the directory has the correct permissions
if sys.platform != 'win32':
os.chmod(run_dir, 0o777)

# if there are tests requested, create the files
if 'tests' in run_data['request_data']:
# create the test file(s)
Expand Down

0 comments on commit 88f5f3d

Please sign in to comment.