python split path at level

37

python split path at level -

import os
path = os.path.normpath(path)
path.split(os.sep)

Comments

Submit
0 Comments