comtypes
comtypes copied to clipboard
Code cache and not administrator throws index error
When running a Skript as normal user comtypes create a directory for the generated file under 'AppData\Roaming\Python\Python36\comtypes_cache'. In the module '_code_cache.py ' the gen.path is correctly updated, but not the variable gen_path. So the next step to Access gen_path[-1] fails.
Possible change to the code in line 70:
gen.__path__.append(gen_dir) # Changed by Fue gen_path = _ensure_list(gen.__path__) # --------------------- result = os.path.abspath(gen_path[-1])