Well, '/'.join() is totally correct given that the delimiter is always a slash. os.path.join() would have been a bad idea. So as said above we could have our own wrapper method, which simply joins without replacing parts of the string.