Override the schema with a custom xml. This method updates several global variables and care should be taken not to call it if the pre-update values have already been used. Args: schema_xml_path: Path to schema xml file.
(schema_xml_path)
| 246 | |
| 247 | |
| 248 | def override_schema(schema_xml_path): |
| 249 | """Override the schema with a custom xml. |
| 250 | |
| 251 | This method updates several global variables and care should be taken not to |
| 252 | call it if the pre-update values have already been used. |
| 253 | |
| 254 | Args: |
| 255 | schema_xml_path: Path to schema xml file. |
| 256 | """ |
| 257 | global MUJOCO |
| 258 | global FINDABLE_NAMESPACES |
| 259 | |
| 260 | MUJOCO = parse_schema(schema_xml_path) |
| 261 | FINDABLE_NAMESPACES = frozenset( |
| 262 | collect_namespaces(MUJOCO).union(_ADDITIONAL_FINDABLE_NAMESPACES)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…