Skip to content

Support for pathlib.Path #1544

Description

@raffaelemancuso

docx.document.Document.add_picture should support pathlib.Path objects.

Currently it returns an error if you try to pass the file name of the image as a pathlib.Path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pathlib.PathSupport for `pathlib.Path` objects where `str` paths are supported.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions