Environment vars

Bob van der Poel bob at mellowood.ca
Wed Nov 25 16:30:45 EST 2020


On Wed, Nov 25, 2020 at 2:22 PM dn via Python-list <python-list at python.org>
wrote:

> > Ahha! Didn't know about os.pathsep. Seems simple enough to use that and
> be
> > done with it.
> >
> > I'm just using str.split() just now. Is there a os.splitpath()? I don't
> see
> > anything in the docs.
>
>
> https://docs.python.org/3/library/os.path.html#os.path.split
> --
> Regards =dn


Yes, but os.path.split() turns a single path into its components. We're
chatting about a bunch of complete path names separated by os.pathsep.


More information about the Python-list mailing list