vendredi 5 décembre 2014

merge paths with python, from /a/b/c + c/d to /a/b/c/d


Vote count:

0




in python, with os.path.join, I can join directories paths



import os
os.path.join('/usr','opt', 'bin')
'/usr/opt/bin'


how I can merge two path ?


from



/a/b/c + c/d


get



/a/b/c/d


asked 1 min ago

JuanPablo

4,452






merge paths with python, from /a/b/c + c/d to /a/b/c/d

Aucun commentaire:

Enregistrer un commentaire