If working with restricted user rights and having Python installed under the %Program Files% folder the dynamic generation of comtypes wrapper does not work due to restricted access to the %Programs Folder%. Hence the location should be changed to the user specific directory for each installed python version e.g. "C:\Documents and Settings\username\Application Data\Python25\comtypesgen"
For this the function _find_gen_dir in comtypes\client\__init__.py has to be changed as attached.
Log in to post a comment.