Skip to content

Commit

Permalink
Use uri.ospath instead of .path
Browse files Browse the repository at this point in the history
This is guaranteed to be a local file and we can not have encoded
content.
  • Loading branch information
timj committed Jul 26, 2024
1 parent db3495b commit 3a42ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/pipe/base/formatters/pexConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ def read_from_stream(
return Config._fromPython(stream.read().decode())

def write_local_file(self, in_memory_dataset: Any, uri: ResourcePath) -> None:
in_memory_dataset.save(uri.path)
in_memory_dataset.save(uri.ospath)

0 comments on commit 3a42ec8

Please sign in to comment.