New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redundant processes for finding typelib-path and resolving it #358
Comments
I propose that it is no more defining comtypes/comtypes/tools/codegenerator.py Lines 222 to 227 in 6c1788a
RationaleCurrently, there is still a conditional branch that makes the definition of comtypes/comtypes/tools/codegenerator.py Lines 248 to 265 in fed3de6
Perhaps this is because there used to be a situation where
So currently it seems |
Related to #327, I am refactoring
tools.codegenerator
andclient._generate
.These modules include processing to turn passed relative paths into absolute paths and to find absolute paths to type libraries.
However, there are redundant processes as below.
tlbparser.get_tlib_filename
is None, there is a process that tries to get the absolute path of the type library by other methods.comtypes/comtypes/tools/tlbparser.py
Lines 716 to 724 in fed3de6
comtypes/comtypes/client/_generate.py
Lines 110 to 122 in fed3de6
comtypes/comtypes/tools/codegenerator.py
Lines 267 to 286 in fed3de6
comtypes/comtypes/tools/codegenerator.py
Lines 242 to 265 in fed3de6
I would like to make sure that only
client._generate
does path-related processing for type libraries, and thattools.codegenerator
only takes the path and generates code.The text was updated successfully, but these errors were encountered: