spacepy_logo

Previous topic

spacepy.toolbox.feq

Next topic

spacepy.toolbox.human_sort

This Page

spacepy.toolbox.getNamedPath

spacepy.toolbox.getNamedPath(name)[source]

Return the full path of a parent directory with name as the leaf

Parameters:

name : string

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’