[Tutor] slashes in paths
Dominik George
nik at naturalnet.de
Sun Jul 21 01:43:16 CEST 2013
Hi,
the base path is \, and one exists for every drive. C:\foo is foo in C:'s root, C:foo is foo in C:'s current working directory.
-nik
Jim Mooney <cybervigilante at gmail.com> schrieb:
>On 20 July 2013 13:46, Alan Gauld <alan.gauld at btinternet.com> wrote:
>
>> The fact that you gave it a prefix containing forward
>> slashes is confusing things. It works best with a list
>> of individual folder names and let it provide the os.sep.
>> Try splitting your partial path before feeding it to join.
>
>Except I can't do that with 'C:' since the docs stay that on windows,
>only 'c:/' is accepted as the base path, not 'c:'.
>
>If only Bill Gates hadn't chosen '\', which is awkward to type and
>hard to make compatible - but I think he figured his wonderful DOS
>would be a Unix-killer, reign supreme, and there would be no
>compatibility problem. All I can say to that is, "thank God for
>competition." ;')
>
>Jim
>
>At one time if someone had a lame idea, you'd say, "That and ten
>cents will get you a cup of coffee." Now you have to say, "That and
>five dollars and forty-eight cents will get you a double
>creme-de-menthe Grande frappe, with a touch of juniper, nonfat creme,
>and low on the sugar."
>
>It just ain't the same.
>_______________________________________________
>Tutor maillist - Tutor at python.org
>To unsubscribe or change subscription options:
>http://mail.python.org/mailman/listinfo/tutor
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130721/aa7b99c6/attachment.html>
More information about the Tutor
mailing list