Skip to content

Fix IO-Path handling breaks in installation (e g. pip install ...) (#126)#127

Open
PSeros wants to merge 1 commit into
RWTH-EBC:developfrom
simu-flex-lokal:fix/hard-coded-paths
Open

Fix IO-Path handling breaks in installation (e g. pip install ...) (#126)#127
PSeros wants to merge 1 commit into
RWTH-EBC:developfrom
simu-flex-lokal:fix/hard-coded-paths

Conversation

@PSeros

@PSeros PSeros commented Jun 24, 2026

Copy link
Copy Markdown

Result paths in Datahandler, DemandPlots, and CertificateBuilder defaulted to a directory inside the package source tree, which should be read-only. They now default to os.getcwd()/results (this doesn't change the current behaviour when cloning the repository).

load_global_config no longer requires .env files to live inside the package's data/ directory. Relative paths resolve against CWD first, with the bundled data/ directory as a fallback so existing examples keep working unchanged. Passing None now returns class defaults without touching the filesystem. The now-unused Settings class is removed.

Additionally setup.py explicitly declares package_data so the data/ directory and all its contents are reliably included in the distribution.

Result paths in Datahandler, DemandPlots, and CertificateBuilder defaulted
to a directory inside the package source tree, which is read-only in a
pip-installed environment. They now default to os.getcwd()/results.

load_global_config no longer requires .env files to live inside the
package's data/ directory. Relative paths resolve against CWD first, with
the bundled data/ directory as a fallback so existing examples keep working
unchanged. Passing None now returns class defaults without touching the
filesystem. The now-unused Settings class is removed.

setup.py explicitly declares package_data so the data/ directory and all
its contents are reliably included in the distribution.
@PSeros PSeros closed this Jun 24, 2026
@PSeros PSeros deleted the fix/hard-coded-paths branch June 24, 2026 12:20
@PSeros PSeros restored the fix/hard-coded-paths branch June 28, 2026 12:18
@PSeros

PSeros commented Jun 29, 2026

Copy link
Copy Markdown
Author

I forgot that deleting the branch closes the pull request...

@PSeros PSeros reopened this Jun 29, 2026
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.

1 participant