Skip to content

Support file system path protocol hints for Python

David Gobbi requested to merge dgobbi/vtk:18120-python-fspath into master

In Python, objects can have a __fspath__ to provide a string that is meant to provide a path on the file system. This change adds a hint (VTK_FILEPATH) to indicate what VTK methods should allow use of these pathlike objects. Since SetFileName() methods are always expected to accept pathlike objects, they are automatically hinted.

Closes: #18120 (closed)

Edited by David Gobbi

Merge request reports