From 1762e66d384b9405f4f54f24f1843d0b0ac5c6ee Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Tue, 26 Dec 2023 09:50:01 -0700 Subject: [PATCH] chmod the offending dir --- geojson_modelica_translator/modelica/modelica_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geojson_modelica_translator/modelica/modelica_runner.py b/geojson_modelica_translator/modelica/modelica_runner.py index 6a91adce7..cecda8289 100644 --- a/geojson_modelica_translator/modelica/modelica_runner.py +++ b/geojson_modelica_translator/modelica/modelica_runner.py @@ -189,8 +189,8 @@ def _subprocess_call_to_docker(self, run_path: Path, action: str) -> int: # While we're still working here, remove the 'tmp' folder that was created by 5G simulations, # because it will have different permissions than the user running the container (especially in CI) if (run_path / 'tmp' / 'temperatureResponseMatrix').exists(): - # print(f'Removing {run_path / "tmp" / "temperatureResponseMatrix"}...') - # (run_path / 'tmp').chmod(0o777) + print(f'Removing {run_path / "tmp" / "temperatureResponseMatrix"}...') + (run_path / 'tmp').chmod(0o666) shutil.rmtree(run_path / 'tmp' / 'temperatureResponseMatrix') # check if the tmp folder is empty now, and if so remove if not any((run_path / 'tmp').iterdir()):