from os.path import join as os_join foo = os_join("a", "b")