Skip to content

Hand Over OS to Pathlib where possible#2677

Open
Rixxan wants to merge 3 commits into
EDCD:developfrom
HullSeals:enhancement/os-handoff-pathlib
Open

Hand Over OS to Pathlib where possible#2677
Rixxan wants to merge 3 commits into
EDCD:developfrom
HullSeals:enhancement/os-handoff-pathlib

Conversation

@Rixxan
Copy link
Copy Markdown
Contributor

@Rixxan Rixxan commented Jun 6, 2026

Description

This PR simplifies EDMC by handing over more os.Path and os package features to Pathlib. Pathlib has taken precedence in Python where possible and includes additional safety checks that make it more suitable for most purposes.

OS has been kept in places where Pathlib doesn't have similar or equivalent features.

Also includes a fix where users couldn't type in log fields on the config. Now they can!

Type of Change

Enhancement

How Tested

Tested to ensure existing path objects are still read properly, and existing tests pass. No errors observed in gameplay.

Notes

Fixes #2636.
Fixes #2602.

@Rixxan Rixxan added this to the 6.2.0 milestone Jun 6, 2026
@Rixxan Rixxan self-assigned this Jun 6, 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

1 participant