Path separator char in python 2.4
Asked Answered
C

1

16

Just out of curiosity - is there another way to obtain the platform's path separator char than os.path.normcase('/') in Python 2.4?
I was expecting something like a os.path.separator constant...

Cavernous answered 10/9, 2009 at 11:30 Comment(0)
S
41

That would be os.sep.

Salisbury answered 10/9, 2009 at 11:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.