Skip to content

Make Python API support os.PathLike[str] object beside str path #2016

@evan0greenup

Description

@evan0greenup

Currently, for Python API in cadquery if there is a file path in function argument, it has to be str object.

However, according to the Python official, it is recommended to use os.PathLike[str] object like pathlib.Path .

It would be nice to add os.PathLike[str] support in the API under cadquery module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions