python split path at level

47

python split path at level -

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

Comments

Submit
0 Comments