Skip to content

Saving with pathlib object #102

@williambdean

Description

@williambdean

Would be nice if the save functionality worked with pathlib's PosixPath object.

No python requirements would have to change with pathlib being introduced in python 3.4

Seems like check would go here:

branca/branca/element.py

Lines 162 to 163 in 629ed34

if isinstance(outfile, str) or isinstance(outfile, bytes):
fid = open(outfile, 'wb')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions