comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

Code cache and not administrator throws index error

Open Heribert17 opened this issue 7 years ago • 0 comments

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])

Heribert17 avatar Feb 04 '18 10:02 Heribert17