File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212sys .path .insert (0 , os .path .abspath ('../source' ))
1313import sourceEnv # noqa: F401, E402
1414
15+
16+ # Apply several monkey patches to comtypes.
17+ # Add our `comInterfaces` to the `comtypes.gen` seach path to replicate the behavior at runtime
18+ # without this patch many modules aren't importable, since they depend on `comInterfaces` being present.
19+ # Also disable module being never than typelib error, seen when
20+ # virtual environment has been created under different version of Windows than the one
21+ # used for developer documentation build. This also matches the behavior at runtime.
22+ import monkeyPatches .comtypesMonkeyPatches # noqa: E402
23+ monkeyPatches .comtypesMonkeyPatches .replace_check_version ()
24+ monkeyPatches .comtypesMonkeyPatches .appendComInterfacesToGenSearchPath ()
25+
1526# Initialize languageHandler so that sphinx is able to deal with translatable strings.
1627import languageHandler # noqa: E402
1728languageHandler .setLanguage ("en" )
You can’t perform that action at this time.
0 commit comments