fix dot in name
This commit is contained in:
@@ -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,)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user