fix: need to be sure that these are both Path objects

This commit is contained in:
jlw4049 2024-03-08 14:52:08 -05:00
parent 63cbdc9663
commit f6a5d41dfe

@ -639,9 +639,13 @@ class GenerateImages:
self.source_index_path = source_path_obj.parent / Path(
f"{source_path_obj.stem}{indexer_ext}"
)
else:
self.source_index_path = Path(self.source_index_path)
if not self.encode_index_path or not Path(self.encode_index_path).exists():
encode_path_obj = Path(self.source_file)
self.encode_index_path = encode_path_obj.parent / Path(
f"{encode_path_obj.stem}{indexer_ext}"
)
else:
self.encode_index_path = Path(self.encode_index_path)