INNER CODE UNIT · Python

find_all_files

HyperionGameTech/HyperionEngine · Tools/Scripts/Misc/rename_files.py:7

def find_all_files(in_path):
    # map from original filename -> array of tuple(line num, what to change to)

    include_changes: dict[str, dict[int, tuple[str, str]]] = {}
    to_rename: dict[str, Path] = {}
    all_not_found: set[str] = set()

    headers = list(glob.glob('{}/**/*.h'.format(in_path), recursive=True)) + list(glob.glob('{}/**/*.hpp'.format(in_path), recursive=True))
    sources = list(glob.glob('{}/**/*.cpp'.format(in_path), recursive=True))

    all_files = headers + sources

    for f in all_files:
        print(f)
        # if not 'descriptor_set' in f:
        #     continue

        base = os.path.basename(f)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…