os.path.join() necessary?

Michael Hudson mwh at python.net
Thu May 23 08:57:54 EDT 2002


Thomas Guettler <zopestoller at thomas-guettler.de> writes:

> Michael Hudson wrote:
> 
> > Thomas Guettler <zopestoller at thomas-guettler.de> writes:
> >
> >>Is os.path.join() necessary? I use
> >>
> >>absolute_path=dir + "/" + file
> >>
> >>on windows (W2K) without problems.
> >>
> > Try it on the Mac.
> 
> 
> I would, but have not Mac or MacOSX here.

That's not the point.

> Can you try it?

No, but I can tell you what will happen (in Classic, at least): it
won't work.  MacOS <=9 uses colons as path separators.  

Cheers,
M.

-- 
  Now this is what I don't get.  Nobody said absolutely anything
  bad about anything.  Yet it is always possible to just pull
  random flames out of ones ass.
         -- http://www.advogato.org/person/vicious/diary.html?start=60



More information about the Python-list mailing list