os.path.join



examples/os/path_join.py
import os

path = os.path.join('home', 'foo', 'work')
print(path)

# Linux, OSX: home/foo/work
# Windows:    home\foo\work