Expand description
music21’s common.pathTools, as far as it needs no Python.
Functions§
- clean_
path - A path as music21’s
common.cleanpathleaves it:~expanded, made absolute against the working directory and normalized, and environment variables expanded. - last_
parent_ dir - The index of the last
..among a path’s parts, if there is one. music21’scleanpathcollapses a..only where the folders up to and including the last one exist, so this is how far it has to look.