fix: need to be sure that these are both Path objects
This commit is contained in:
parent
63cbdc9663
commit
f6a5d41dfe
@ -639,9 +639,13 @@ class GenerateImages:
|
|||||||
self.source_index_path = source_path_obj.parent / Path(
|
self.source_index_path = source_path_obj.parent / Path(
|
||||||
f"{source_path_obj.stem}{indexer_ext}"
|
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():
|
if not self.encode_index_path or not Path(self.encode_index_path).exists():
|
||||||
encode_path_obj = Path(self.source_file)
|
encode_path_obj = Path(self.source_file)
|
||||||
self.encode_index_path = encode_path_obj.parent / Path(
|
self.encode_index_path = encode_path_obj.parent / Path(
|
||||||
f"{encode_path_obj.stem}{indexer_ext}"
|
f"{encode_path_obj.stem}{indexer_ext}"
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
self.encode_index_path = Path(self.encode_index_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user