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

SilentGhost
  • 307,395
  • 66
  • 306
  • 293
Niklas
  • 5,736
  • 7
  • 35
  • 42

1 Answers1

41

That would be os.sep.

Mark Rushakoff
  • 249,864
  • 45
  • 407
  • 398