Skip to content

[ModelicaSystem] update handling of work directory - #329

Merged
adeas31 merged 2 commits into
OpenModelica:masterfrom
syntron:ModelicaSystem_workdir
Aug 20, 2025
Merged

[ModelicaSystem] update handling of work directory#329
adeas31 merged 2 commits into
OpenModelica:masterfrom
syntron:ModelicaSystem_workdir

Conversation

@syntron

@syntron syntron commented Aug 12, 2025

Copy link
Copy Markdown
Contributor
  • use as input str or os.PathLike; the later covers all pathlib objects
  • rename _tempdir to _work_dir
  • rename setTempDirectory() => setWorkDirectory()
  • setWorkDirectory() sets the work dir and also returns its path
  • use setWorkDirectory() within code; this allows to add special handling to the function if needed

@adeas31 adeas31 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment thread OMPython/ModelicaSystem.py Outdated
* use as input str or os.PathLike; the later covers all pathlib objects
* rename _tempdir to _work_dir
* rename setTempDirectory() => setWorkDirectory()
* setWorkDirectory() sets the work dir and also returns its path
* use setWorkDirectory() within code; this allows to add special handling
  to the function if needed
@syntron
syntron force-pushed the ModelicaSystem_workdir branch from 26e73f6 to 3c45338 Compare August 19, 2025 17:59
@adeas31
adeas31 enabled auto-merge (squash) August 20, 2025 09:59
@adeas31
adeas31 merged commit 7616030 into OpenModelica:master Aug 20, 2025
8 of 9 checks passed
@syntron
syntron deleted the ModelicaSystem_workdir branch August 20, 2025 17:32
@syntron syntron mentioned this pull request Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants