Niklas
Niklas

Reputation: 5836

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

Upvotes: 16

Views: 7736

Answers (1)

Mark Rushakoff
Mark Rushakoff

Reputation: 258188

That would be os.sep.

Upvotes: 41

Related Questions