[issue42458] Pathlib resolve() on Mac Catalina prepends secret path

2020-11-25 Thread John Engelke
Change by John Engelke : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42458] Pathlib resolve() on Mac Catalina prepends secret path

2020-11-25 Thread John Engelke
John Engelke added the comment: Thanks @ronaldoussoren. This bug report is flawed for a couple reasons, notwithstanding some assumptions I made incorrectly. (SIP actually makes "/home" a symlink so that resolved correctly.) So I am retracting it as-is because I can't edit the original

[issue42458] Pathlib resolve() on Mac Catalina prepends secret path

2020-11-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure if I understand what you're trying to do. Is host_path_str a path on the local machine, or a path on the FTP server? For the latter you probably want to use "PurePosixpath" instead of "Path", the latter is intended to be used for local paths

[issue42458] Pathlib resolve() on Mac Catalina prepends secret path

2020-11-24 Thread John Engelke
New submission from John Engelke : On Mac OS X Catalina+, Pathlib's resolve() method prepends the System Integrity Protection (SIP) path to the front of the resolved Path, whether you like it or not. >>> from pathlib import Path >>> host_path_str = "/home/somewhere/there/../nowhere" >>>