def yaml_loc_join(l, n):
    '''
    YAML loader to join paths

    The keywords come directly from :func:`util.locations.get_locations`.
    See there!

    :returns:
        A `path seperator` (``/``) joined string |yaml_loader_returns|

    .. seealso:: |yaml_loader_seealso|
    '''

    from photon.util.locations import get_locations

    locations = get_locations()
    s = l.construct_sequence(n)

    for num, seq in enumerate(s):
        if seq in locations:
            s[num] = '%s' % (locations[seq])
    return _path.join(*s)
def yaml_loc_join ( l , n ) : from photon . util . locations import get_locations locations = get_locations ( ) s = l . construct_sequence ( n ) for num , seq in enumerate ( s ) : if seq in locations : s [ num ] = '%s' % ( locations [ seq ] ) return _path . join ( * s )
YAML loader to join paths

    The keywords come directly from :func:`util.locations.get_locations`.
    See there!

    :returns:
        A `path seperator` (``/``) joined string |yaml_loader_returns|

    .. seealso:: |yaml_loader_seealso|