Fixed wrong name for output file in normal mode

This commit is contained in:
Thomasedv 2021-04-16 19:48:03 +02:00
parent 9992414053
commit 434a6c4db1

View file

@ -142,9 +142,9 @@ class Project(object):
os.makedirs(Path(self.output_file), exist_ok=True) os.makedirs(Path(self.output_file), exist_ok=True)
self.output_file = Path(f"{self.output_file}{self.input.stem}_{self.encoder}{suffix}") self.output_file = Path(f"{self.output_file}{self.input.stem}_{self.encoder}{suffix}")
else: else:
self.output_file = Path(f"{self.input.stem}_{self.encoder}{suffix}") self.output_file = Path(self.output_file).with_suffix(suffix)
else: else:
self.output_file = Path(self.output_file).with_suffix(suffix) self.output_file = Path(f"{self.input.stem}_{self.encoder}{suffix}")
def load_project_from_file(self, path_string): def load_project_from_file(self, path_string):
""" """