find_am_png_everywhere.py 764 B

12345678910111213141516171819202122232425
  1. import os
  2. found = []
  3. # Search in key user areas first
  4. search_roots = [
  5. r"c:\Users\lanfr144",
  6. r"c:\Users\Default",
  7. r"c:\ProgramData"
  8. ]
  9. for root_dir in search_roots:
  10. if not os.path.exists(root_dir):
  11. continue
  12. print(f"Scanning {root_dir}...")
  13. for root, dirs, files in os.walk(root_dir):
  14. # Skip node_modules, .git, venv
  15. dirs[:] = [d for d in dirs if d not in ['.git', '.venv', 'node_modules', '__pycache__', 'AppData']]
  16. if "am.png" in [f.lower() for f in files]:
  17. for f in files:
  18. if f.lower() == "am.png":
  19. p = os.path.join(root, f)
  20. print(f"Found match: {p}")
  21. found.append(p)
  22. print("Search complete. Matches found:", found)