Skip to content

Commit

Permalink
change permissions in tmp folder to allow deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Dec 22, 2023
1 parent 46afda9 commit 8c2bfae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions geojson_modelica_translator/modelica/modelica_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ def cleanup_path(self, path: Path, model_name: str, **kwargs: dict) -> None:
# remove the 'tmp' folder that was created, because it will
# have different permissions than the user running the container
if (path / 'tmp' / 'temperatureResponseMatrix').exists():
(path / 'tmp').chmod(0o666)
shutil.rmtree(path / 'tmp' / 'temperatureResponseMatrix')
# check if the tmp folder is empty now, and if so remove
if not any((path / 'tmp').iterdir()):
Expand Down

0 comments on commit 8c2bfae

Please sign in to comment.