Closed patmaddox closed 4 months ago
In #1545 I added explicit support for FreeBSD. Instead of this approach, I wonder if it would be worth defaulting to /home/
on POSIX systems, and have Windows be the one exceptional case? The only system-specific config is the home dir.
I don't have access to a windows machine for testing, so I don't know exactly what it would be, but something like:
if "win" in platform:
self._pathlib_home = PureWindowsPath() / "C:\\Users\\"
else:
self._pathlib_home = PurePosixPath / "/home/"
or perhaps it's even simpler:
self._pathlib_home = WindowsPath("C:\\Users\\") if "win" in platform else PosixPath("/home/")
That way it would work on any BSD, solaris, etc.
Bug report
What's wrong
How is that should be
It works
System information
FreeBSD 13