mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
Fixed error when output folder does not exist.
This commit is contained in:
parent
cf8e2b856a
commit
9992414053
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,8 @@ class Project(object):
|
|||
# Check for non-empty string
|
||||
if isinstance(self.output_file, str) and self.output_file:
|
||||
if self.output_file[-1] in ('\\', '/'):
|
||||
if not Path(self.output_file).exists():
|
||||
os.makedirs(Path(self.output_file), exist_ok=True)
|
||||
self.output_file = Path(f"{self.output_file}{self.input.stem}_{self.encoder}{suffix}")
|
||||
else:
|
||||
self.output_file = Path(f"{self.input.stem}_{self.encoder}{suffix}")
|
||||
|
|
Loading…
Reference in a new issue