Python won't let me open this file. Why not? The format of the command is correct, and it's definitely a file that exists on disk.
Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, os.path
>>> path = os.path.join(os.getenv('LOCALAPPDATA'), r"Microsoft\WindowsApps\ilspy.exe")
>>> f = open(path, "rb")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 22] Invalid argument: 'C:\\Users\\<my name>\\AppData\\Local\\Microsoft\\WindowsApps\\ilspy.exe'
>>>