def file_containing_import(import_path, import_root):
    if not _import_paths:
        load_stdlib()

    if os.path.isfile(import_root):
        import_root = os.path.dirname(import_root)

    search_paths = [import_root] + _import_paths
    module_parts = import_path.split('.')
    for i in range(len(module_parts), 0, -1):
        module_path = os.path.join(*module_parts[:i])
        for sp in search_paths:
            p = os.path.join(sp, module_path)
            if os.path.isdir(p):
                return os.path.join(p, '__init__.py')
            elif os.path.isfile(p + '.py'):
                return p + '.py'
    return None
Deploy the admin media to s3.
dataset/ETHPy150Open tweekmonster/moult/moult/utils.py/file_containing_import--crossover with--dataset/ETHPy150Open ireapps/census/censusweb/fabfile.py/deploy_requirements_to_s3