From 8ca49ee3181df6772836b9920b001946c2218249 Mon Sep 17 00:00:00 2001 From: Jay Carey Date: Fri, 10 Feb 2023 13:05:49 -0500 Subject: [PATCH] path.open properly resolves s3 uri for s3path --- sample_sheet/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample_sheet/__init__.py b/sample_sheet/__init__.py index 7a322b5..138ecec 100644 --- a/sample_sheet/__init__.py +++ b/sample_sheet/__init__.py @@ -418,7 +418,7 @@ def __init__(self, path: Optional[Union[Path, str, TextIO]] = None) -> None: if self.path is not None: if isinstance(self.path, (str, Path)): - with open(self.path, 'r') as f: + with self.path.open('r') as f: self._parse(f) else: self._parse(self.path)