os.path.join import os p1 = "protocol" p2 = "SMB" print os.path.join(p1,p2) linux , is “/” , while windows is “”