Skip to content

Commit

Permalink
ugh, different logging for GHA runner
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Dec 26, 2023
1 parent 33b3cae commit ce5126b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geojson_modelica_translator/modelica/modelica_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,10 @@ def cleanup_path(self, path: Path, model_name: str, **kwargs: dict) -> None:
# 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 (path / 'tmp' / 'temperatureResponseMatrix').is_dir():
print(f'Removing {path / "tmp" / "temperatureResponseMatrix/"}...')
print((path / 'tmp' / 'temperatureResponseMatrix').stat().st_mode)
logger.debug(f'Removing {path / "tmp" / "temperatureResponseMatrix/"}...')
logger.debug((path / 'tmp' / 'temperatureResponseMatrix').stat().st_mode)
(path / 'tmp' / 'temperatureResponseMatrix').chmod(0o666)
print((path / 'tmp' / 'temperatureResponseMatrix').stat().st_mode)
logger.debug((path / 'tmp' / 'temperatureResponseMatrix').stat().st_mode)
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 ce5126b

Please sign in to comment.