spacepy.toolbox.getNamedPath¶
- spacepy.toolbox.getNamedPath(name)[source]¶
Return the full path of a parent directory with name as the leaf
- Parameters:
- namestring
the name of the parent directory to locate
Examples
Run from a directory /mnt/projects/dream/bin/Ephem with ‘dream’ as the name, this function would return ‘/mnt/projects/dream’