osa_toolkit/filesystem.py
def _get_search_paths(preferred_path=None, suffix=None):
    """Return a list of search paths, including the standard location

    :param preferred_path: A search path to prefer to a standard location
    :param suffix: Appended to the search paths, e.g. subdirectory or filename
    :return: ``(list)`` Path strings to search
    """

    search_paths = [
        os.path.join(
            '/etc', 'openstack_deploy'
        ),
    ]
    if preferred_path is not None:
        search_paths.insert(0, os.path.expanduser(preferred_path))

    if suffix:
        search_paths = [os.path.join(p, suffix) for p in search_paths]

    return search_paths
Return a list of search paths, including the standard location

    :param preferred_path: A search path to prefer to a standard location
    :param suffix: Appended to the search paths, e.g. subdirectory or filename
    :return: ``(list)`` Path strings to search
    
Return a list of search paths, including the standard location
Return a list of search paths including the standard location
def _get_search_paths(preferred_path=None, suffix=None):
    search_paths = [
        os.path.join(
            '/etc', 'openstack_deploy'
        ),
    ]
    if preferred_path is not None:
        search_paths.insert(0, os.path.expanduser(preferred_path))
    if suffix:
        search_paths = [os.path.join(p, suffix) for p in search_paths]
    return search_paths
def _get_search_paths ( preferred_path = None , suffix = None ) : search_paths = [ os . path . join ( '/etc' , 'openstack_deploy' ) , ] if preferred_path is not None : search_paths . insert ( 0 , os . path . expanduser ( preferred_path ) ) if suffix : search_paths = [ os . path . join ( p , suffix ) for p in search_paths ] return search_paths
Return a list of search paths, including the standard location
Return a list of search paths including the standard location
"""Return a list of search paths, including the standard location

    :param preferred_path: A search path to prefer to a standard location
    :param suffix: Appended to the search paths, e.g. subdirectory or filename
    :return: ``(list)`` Path strings to search
    """
``(list)`` Path strings to search
` ` ( list ) ` ` Path strings to search
preferred_path
A search path to prefer to a standard location
A search path to prefer to a standard location
suffix
Appended to the search paths, e.g. subdirectory or filename
Appended to the search paths e . g . subdirectory or filename