Skip to content

Fix generate-config on Windows - #2432

Open
w-tusche wants to merge 1 commit into
PyPSA:masterfrom
w-tusche:fix/generate-config-windows
Open

w-tusche wants to merge 1 commit into
PyPSA:masterfrom
w-tusche:fix/generate-config-windows

Conversation

@w-tusche

Copy link
Copy Markdown
Contributor

Changes proposed in this Pull Request

Windows python does not default to utf-8 encoding. The PR introduces explicity utf-8 writing and reading and fixes paths writing with as_posix().

Checklist

Required:

  • Changes are tested locally and behave as expected.
  • Code and workflow changes are documented.
  • A release note entry is added to doc/release_notes.md.
  • The description is human-written and any AI-generated content is marked.

Read and write the generated config files as UTF-8 instead of the system
codepage, and write Path defaults with forward slashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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