MCPcopy Create free account
hub / github.com/Kitware/VTK / add_init_file

Function add_init_file

Documentation/docs/vtk_documentation.py:143–150  ·  view source on GitHub ↗

By default the Wrapping/Python/vtkmodules/__init__.py.in has contains no modules since it is populated during configuration time. However, autodoc2 needs an initialized __init__.py to generate documentation. We use a local copy which is extracted from vtk-9.2.6-cp311-cp311-win_amd64.wh

(path)

Source from the content-addressed store, hash-verified

141
142
143def add_init_file(path):
144 """By default the Wrapping/Python/vtkmodules/__init__.py.in has contains
145 no modules since it is populated during configuration time. However,
146 autodoc2 needs an initialized __init__.py to generate documentation. We use
147 a local copy which is extracted from vtk-9.2.6-cp311-cp311-win_amd64.whl.
148 @todo we need to make this automatic.
149 """
150 shutil.copy("vtkmodules.__init__.py", path)
151
152
153# -----------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected