os.path.join() necessary?

Eric Texier erict at millfilm.co.uk
Thu May 23 09:38:19 EDT 2002


Even on Windows. If I have a good memory , when you are in the console
it doesn't mind too much for certain command to have the last '\'
like '/', but with something like the following  you may have problem


absolute_path=dir + "/" + dir2 + "/" + file



Michael Hudson wrote:

> Thomas Guettler <zopestoller at thomas-guettler.de> writes:
>
> > Is os.path.join() necessary? I use
> >
> > aEven on WindowsIf I have a good memory , when you are in the console
>
> it doesn't mind too much for certain command to have the last '\'
> like '/', but if you keep building path, you may have problem
>
> >
> > on windows (W2K) without problems.
>
> Try it on the Mac.
>
> Cheers,
> M.
>
> --
>   I'm sorry, was my bias showing again? :-)
>                                       -- William Tanksley, 13 May 2000




More information about the Python-list mailing list