removed .csv suffix from annotation name

This commit is contained in:
Alok Saldanha
2021-03-29 07:28:16 -04:00
parent 586dc6623a
commit 76c1d9e80c
6 changed files with 32 additions and 4 deletions
+3 -2
View File
@@ -18,10 +18,11 @@ class FileItem(Item):
The Item superclass expects a 'name' and 'type'.
"""
def __init__(self, subpath: str, *args, **kwargs):
def __init__(self, subpath: str, ext: str = "", *args, **kwargs):
super().__init__(*args, **kwargs)
self.subpath = subpath
self.ext = ext
@property
def descriptor(self) -> str:
return os.path.join(self.subpath, self.name).strip("/")
return os.path.join(self.subpath, self.name + self.ext).strip("/")