Skip to main content

Module pathtools

Module pathtools 

Source
Expand description

music21’s common.pathTools, as far as it needs no Python.

Functions§

clean_path
A path as music21’s common.cleanpath leaves 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’s cleanpath collapses a .. only where the folders up to and including the last one exist, so this is how far it has to look.