enthought / enthought/comtypes
Code cache and not administrator throws index error
Open
- Dominant language
- Python
- Stars
- 345
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
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])
`
Contributor guide
Assessment
This issue has not been assessed yet.