gemseo.utils.portable_path module
A set of functions to handle OS dependent path operations.
-
to_os_specific(path)[source]
Cast a path to PureWindowsPath on Windows platforms, PurePosixPath otherwise.
- Parameters:
path (Path) -- The path to cast.
- Returns:
The cast path.
- Return type:
PureWindowsPath | PurePosixPath