Skip to content

Support PathLike save targets#56

Open
vibhor-aggr wants to merge 1 commit into
pwin:masterfrom
vibhor-aggr:codex/fix-pathlike-save
Open

Support PathLike save targets#56
vibhor-aggr wants to merge 1 commit into
pwin:masterfrom
vibhor-aggr:codex/fix-pathlike-save

Conversation

@vibhor-aggr

Copy link
Copy Markdown

Summary

Fixes #48.

Allows pathlib.Path and other os.PathLike objects to be passed to Ontology.save() and World.save().

Changes

  • Accept os.PathLike in the same save path branch as string filenames.
  • Add regression coverage for ontology and world saves to pathlib.Path targets.

Verification

uv run --with-editable . python -m unittest test.regtest.Test.test_world_save_pathlike test.regtest.Test.test_ontology_save_pathlike test.regtest.Test.test_world_10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support pathlib.Path for onto.save()

1 participant