Message389493
The documentation of os.path.join() uses os.sep because it's written from the perspective of the platform's os.path, which is posixpath on a POSIX system and ntpath on a Windows system.
If you need to work with POSIX paths in Windows, then use posixpath. It will of course use '/' as the path separator, since using backslash (os.sep) in a POSIX path is wrong. Vice versa, if you need to work with Windows paths in POSIX, use ntpath. |
|
Date |
User |
Action |
Args |
2021-03-25 00:32:15 | eryksun | set | recipients:
+ eryksun, docs@python, jpsutton |
2021-03-25 00:32:15 | eryksun | set | messageid: <1616632335.54.0.552306125815.issue43620@roundup.psfhosted.org> |
2021-03-25 00:32:15 | eryksun | link | issue43620 messages |
2021-03-25 00:32:15 | eryksun | create | |
|