enthought / enthought/comtypes

Code cache and not administrator throws index error

Open
#144 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.