Search code examples
pythonpath-separator

Path separator char in python 2.4


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...


Solution

  • That would be os.sep.