| 12345678910111213141516171819202122232425 |
- import os
- found = []
- # Search in key user areas first
- search_roots = [
- r"c:\Users\lanfr144",
- r"c:\Users\Default",
- r"c:\ProgramData"
- ]
- for root_dir in search_roots:
- if not os.path.exists(root_dir):
- continue
- print(f"Scanning {root_dir}...")
- for root, dirs, files in os.walk(root_dir):
- # Skip node_modules, .git, venv
- dirs[:] = [d for d in dirs if d not in ['.git', '.venv', 'node_modules', '__pycache__', 'AppData']]
- if "am.png" in [f.lower() for f in files]:
- for f in files:
- if f.lower() == "am.png":
- p = os.path.join(root, f)
- print(f"Found match: {p}")
- found.append(p)
- print("Search complete. Matches found:", found)
|