scripts/deps.py
def list_dependencies_recursive(directory, source=None):
    """
    Scans files recursively, returning a dict of dependencies.
    :param directory: Directory to scan
    :param source: Source directory required for absolute path (may be None on the first call)
    :return: A dict in the form:
    {
        <filename as path>: {
            'dependencies': [<dependency>, ...],
            'renames': {
                <local_name>: <real_name>,
                ...
            },
        },
        ...
    }
    """
    dependencies = {}
    if source is None:
        source = directory

    for file in os.listdir(directory):
        filename = os.path.join(directory, file)
        if os.path.isdir(filename):
            dependencies.update(list_dependencies_recursive(filename, source))
        elif filename.endswith('.rs'):
            dependencies[path_from_filename(filename, source)] = list_dependencies(filename, source)

    return dependencies

    Scans files recursively, returning a dict of dependencies.
    :param directory: Directory to scan
    :param source: Source directory required for absolute path (may be None on the first call)
    :return: A dict in the form:
    {
        <filename as path>: {
            'dependencies': [<dependency>, ...],
            'renames': {
                <local_name>: <real_name>,
                ...
            },
        },
        ...
    }
    
Scans files recursively, returning a dict of dependencies.
Scans files recursively returning a dict of dependencies .
def list_dependencies_recursive(directory, source=None):
    dependencies = {}
    if source is None:
        source = directory
    for file in os.listdir(directory):
        filename = os.path.join(directory, file)
        if os.path.isdir(filename):
            dependencies.update(list_dependencies_recursive(filename, source))
        elif filename.endswith('.rs'):
            dependencies[path_from_filename(filename, source)] = list_dependencies(filename, source)
    return dependencies
def list_dependencies_recursive ( directory , source = None ) : dependencies = { } if source is None : source = directory for file in os . listdir ( directory ) : filename = os . path . join ( directory , file ) if os . path . isdir ( filename ) : dependencies . update ( list_dependencies_recursive ( filename , source ) ) elif filename . endswith ( '.rs' ) : dependencies [ path_from_filename ( filename , source ) ] = list_dependencies ( filename , source ) return dependencies
Scans files recursively, returning a dict of dependencies.
Scans files recursively returning a dict of dependencies .
"""
    Scans files recursively, returning a dict of dependencies.
    :param directory: Directory to scan
    :param source: Source directory required for absolute path (may be None on the first call)
    :return: A dict in the form:
    {
        <filename as path>: {
            'dependencies': [<dependency>, ...],
            'renames': {
                <local_name>: <real_name>,
                ...
            },
        },
        ...
    }
    """
None
directory
Directory to scan
Directory to scan
source
Source directory required for absolute path (may be None on the first call)
Source directory required for absolute path ( may be None on the first call )