INNER CODE UNIT · Python

main

mumu-lhl/Ciyue · tools/patch_wpe_sandbox_paths.py:42

def main() -> int:
    targets = sys.argv[1:]
    if not targets:
        print("Usage: patch_wpe_sandbox_paths.py <directory_or_file> ...", file=sys.stderr)
        return 1

    patched_any = False
    for target_str in targets:
        target = Path(target_str)
        if target.is_dir():
            for child in sorted(target.glob("libWPEWebKit-2.0.so*")):
                if child.is_file() and not child.is_symlink():
                    if patch_file(child):
                        patched_any = True
        elif target.is_file():
            if patch_file(target):
                patched_any = True
        else:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…