[issue37993] os.path.realpath on Windows resolves mapped network drives

2019-09-11 Thread Eryk Sun
Eryk Sun added the comment: > It's a few steps deep, but DefineDosDeviceW() [1] specifies that it > creates junctions, and while it's not necessarily obvious how to get > from SUBST to that page, Wikipedia managed it [2]. Take care to not conflate device junctions with the file-system repars

[issue37993] os.path.realpath on Windows resolves mapped network drives

2019-09-11 Thread Steve Dower
Steve Dower added the comment: I'm closing this as not a bug. It's a few steps deep, but DefineDosDeviceW() [1] specifies that it creates junctions, and while it's not necessarily obvious how to get from SUBST to that page, Wikipedia managed it [2]. And I don't think it's unreasonable to exp

[issue37993] os.path.realpath on Windows resolves mapped network drives

2019-09-01 Thread Eryk Sun
Eryk Sun added the comment: >> Unix Python resolves the executable path with repeated _Py_wreadlink >> calls. Windows Python should do something similar to ensure the >> consistency of sys.executable with realpath(sys.executable). > > I don't think this necessarily follows. There's nowhere in

[issue37993] os.path.realpath on Windows resolves mapped network drives

2019-08-31 Thread Steve Dower
Steve Dower added the comment: And thanks for reporting this, Christoph. Issue37834 (and some of the issues linked from there) is where we had most of the discussion about this change. -- ___ Python tracker ___

[issue37993] os.path.realpath on Windows resolves mapped network drives

2019-08-31 Thread Steve Dower
Steve Dower added the comment: Is this an issue or a mismatched expectation? Tests that assume realpath() on Windows is the equivalent of abspath() are of course going to fail when we fix realpath(), and that's kind of what this one looks like. Just because it doesn't have a direct Unix equi

[issue37993] os.path.realpath on Windows resolves mapped network drives

2019-08-31 Thread Eryk Sun
Eryk Sun added the comment: >>>> sys.executable >'X:\\Python38\\python.exe' >>>> os.path.realpath(sys.executable) >'SERVER\\Programs\\Python38\\python.exe' Unix Python resolves the executable path with repeated _Py_wreadlink calls. Windows Python should do something simila

[issue37993] os.path.realpath on Windows resolves mapped network drives

2019-08-31 Thread Christoph Gohlke
New submission from Christoph Gohlke : Re https://bugs.python.org/issue9949: Is it intended that Python-3.8.0b4 now also resolves mapped network drives and drives created with `subst`? I would not expect this from the documentation at https://docs.python.org/3.8/library/os.path.html#os.path