Skip to content

[ModelicaSystem] update handling of work directory #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 20, 2025

Conversation

syntron
Copy link
Contributor

@syntron syntron commented Aug 12, 2025

  • 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

Copy link
Member

@adeas31 adeas31 left a comment

Choose a reason for hiding this comment

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

Looks good!

* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants