os.path.join("/a","/b")

Matthew Dixon Cowles matt at mondoinfo.com
Fri Feb 23 00:36:55 CET 2001


On Thu, 22 Feb 2001 22:36:09 GMT, Fredrik Lundh <fredrik at pythonware.com> wrote:

>the rationale is probably that it's a good idea if
>
>    os.path.join(os.getcwd(), filename)
>
>refers to the same file as:
>
>    filename
>
>for any filename.

Thanks to you and Joshua for the clues. I'm sure that you and he are
right about the rationale. Still, I'd have chosen a name other than
join for that behavior.

Regards,
Matt



More information about the Python-list mailing list