mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-29 16:09:10 +00:00
combined output dir check with the previous section
This commit is contained in:
parent
22f656b800
commit
a1d750e7ca
@ -586,10 +586,8 @@ def main() -> int:
|
|||||||
if not args.input.is_file():
|
if not args.input.is_file():
|
||||||
logger.critical("Input path is not a file")
|
logger.critical("Input path is not a file")
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
# Output file won't exist yet, but the parent directory should.
|
|
||||||
if not args.output.parent.exists():
|
if not args.output.parent.exists():
|
||||||
logger.critical(f"Output directory does not exist: {args.output}")
|
logger.critical(f"Output directory does not exist: {args.output.parent}")
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
# set logger level
|
# set logger level
|
||||||
|
Loading…
Reference in New Issue
Block a user