Skip to content

Hand Over OS to Pathlib where possible#2677

Merged
Rixxan merged 3 commits into
EDCD:developfrom
HullSeals:enhancement/os-handoff-pathlib
Jun 7, 2026
Merged

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

Conversation

@Rixxan

@Rixxan Rixxan commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

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
@Rixxan Rixxan merged commit b6f4e89 into EDCD:develop Jun 7, 2026
3 checks passed
@Rixxan Rixxan deleted the enhancement/os-handoff-pathlib branch June 7, 2026 15:28
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