Path separator char in python 2.4

Niklas picture Niklas · Sep 10, 2009 · Viewed 7.6k times · Source

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

Answer

Mark Rushakoff picture Mark Rushakoff · Sep 10, 2009

That would be os.sep.