fix dot in name

This commit is contained in:
Wolfang Torres
2026-06-20 12:03:01 +08:00
parent ab495b6d31
commit d797e655c6
2 changed files with 2 additions and 1 deletions

View File

@@ -127,6 +127,7 @@ def output_anki_dictionary(
) -> Path: ) -> Path:
"""Creates an anki file from a dictionary results""" """Creates an anki file from a dictionary results"""
final_file = process_file.output_name.with_suffix(".apkg") final_file = process_file.output_name.with_suffix(".apkg")
print()
deck_name = "::".join( deck_name = "::".join(
process_file.input_file.parts[:-1] + (process_file.output_name.stem,) process_file.input_file.parts[:-1] + (process_file.output_name.stem,)
) )

View File

@@ -177,7 +177,7 @@ class ProcessFile:
"""Posible name for the output file, still missing the filetype""" """Posible name for the output file, still missing the filetype"""
if self.language_id is None: if self.language_id is None:
raise ValueError("Not a valid language selected") raise ValueError("Not a valid language selected")
return self.out_folder / f"{self.input_file.stem}.{self.language_id}." return self.out_folder / f"{self.input_file.stem}.{self.language_id}.temp"
@property @property
def dictionary_resource_file(self): def dictionary_resource_file(self):