Message207907
| Author |
serhiy.storchaka |
| Recipients |
Bruce.Leban, elixir, gvanrossum, martin.panter, pitrou, serhiy.storchaka |
| Date |
2014年01月11日.16:17:43 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1389457065.26.0.0670385958739.issue19456@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I just discovered that perhaps ntpath.join should be even more clever. Windows supports current directories for every drive separately, so perhaps ntpath.join('c:/x', 'd:/y', 'c:z') should return 'c:/x\\z', not 'c:/z'.
Could anyone please check it? Create directory x/z on drive c: and directory y on drive d:, then execute following commands:
cd c:/x
cd d:/y
cd c:z
What is resulting current working directory?
Here is a patch which implements this algorithm. |
|