Author eric.smith
Recipients amjad ben hedhili, eric.smith
Date 2018-03-21.14:51:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521643884.91.0.467229070634.issue33102@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, it's cross platform.

For a plain string version, you can use a utility function:

>>> for i in range(n+1):
...   path = os.path.dirname(path)
...

I'm not sure it's worth adding this to os.path.
History
Date User Action Args
2018-03-21 14:51:24eric.smithsetrecipients: + eric.smith, amjad ben hedhili
2018-03-21 14:51:24eric.smithsetmessageid: <1521643884.91.0.467229070634.issue33102@psf.upfronthosting.co.za>
2018-03-21 14:51:24eric.smithlinkissue33102 messages
2018-03-21 14:51:24eric.smithcreate