They are same, but which one should I use?
http://docs.python.org/library/os.html:
os.sepThe character used by t
The following examples could highlight the differences between os.path.join and os.path.sep.join.
import os os.path.join("output", "images", "saved") 'output/images/saved' os.path.sep.join(["output", "images", "saved"]) 'output/images/saved'
I guess the os.path.sep.join is more robust and can be used w/o modifications for any os.