From f64e1456a77b81b1cefa86c5950fd7b9f25ef174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=20Vinh=20LUONG=20=28L=C6=AF=C6=A0NG=20Th=E1=BA=BF=20Vi?= =?UTF-8?q?nh=29?= Date: Fri, 15 Mar 2024 11:36:47 -0700 Subject: [PATCH] update openssa.l2.resource.file.FileResource --- openssa/l2/resource/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssa/l2/resource/file.py b/openssa/l2/resource/file.py index f16401b3b..8e1d440ee 100644 --- a/openssa/l2/resource/file.py +++ b/openssa/l2/resource/file.py @@ -82,7 +82,7 @@ def __post_init__(self, re_index: bool): self.path: Path = self.path.resolve(strict=True) self.str_path: DirOrFileStrPath = str(self.path) else: - self.str_path = self.path = self.path.lstrip().rstrip('/\\') + self.str_path = self.path = os.path.abspath(path=self.path.lstrip().rstrip('/\\')) self.embed_model_name: str = self.embed_model.model_name