For this you want to use `os.path.join`.