MCPcopy Index your code
hub / github.com/SFTtech/openage / depend_module_blacklist

Function depend_module_blacklist

openage/codegen/codegen.py:172–191  ·  view source on GitHub ↗

Yields all modules whose source files shall explicitly not appear in the dependency list, even if they have been imported.

()

Source from the content-addressed store, hash-verified

170
171
172def depend_module_blacklist():
173 """
174 Yields all modules whose source files shall explicitly not appear in the
175 dependency list, even if they have been imported.
176 """
177 # openage.config is created only after the first run of cmake,
178 # thus, the depends list will change at the second run of codegen,
179 # re-triggering cmake.
180 try:
181 import openage.config
182 yield openage.config
183 except ImportError:
184 pass
185
186 # devmode is imported by config, so the same reason as above applies.
187 try:
188 import openage.devmode
189 yield openage.devmode
190 except ImportError:
191 pass
192
193
194def get_codegen_depends(outputwrapper: CodegenDirWrapper) -> Generator[str, None, None]:

Callers 1

get_codegen_dependsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected