Skip to content

Commit

Permalink
use pathlib for path component instead of os
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Dec 22, 2023
1 parent 6059047 commit e30ee2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geojson_modelica_translator/modelica/modelica_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _subprocess_call_to_docker(self, run_path: Union[str, Path], action: str) ->
curdir = Path.cwd()
os.chdir(run_path)
stdout_log = open('stdout.log', 'w')
model_name = os.path.split(str(run_path))[-1]
model_name = run_path.parts[-1]
image_name = 'nrel/gmt-om-runner:v1.22.1'
mo_script = 'compile_fmu' if action == 'compile' else 'simulate'
try:
Expand Down

0 comments on commit e30ee2e

Please sign in to comment.