fix args
This commit is contained in:
parent
8915a36b3d
commit
0edc9a7ab4
1 changed files with 15 additions and 18 deletions
|
@ -128,10 +128,7 @@ class KollagenBot:
|
||||||
num_images = ["-n", args.num_images] if args.num_images else []
|
num_images = ["-n", args.num_images] if args.num_images else []
|
||||||
|
|
||||||
with NamedTemporaryFile(suffix=".png") as ntf:
|
with NamedTemporaryFile(suffix=".png") as ntf:
|
||||||
self.logger.debug(
|
shell_cmd_line = [
|
||||||
f"Running: "
|
|
||||||
+ str(
|
|
||||||
[
|
|
||||||
self.kollagen_path,
|
self.kollagen_path,
|
||||||
"-r",
|
"-r",
|
||||||
*directories,
|
*directories,
|
||||||
|
@ -140,13 +137,13 @@ class KollagenBot:
|
||||||
"-h",
|
"-h",
|
||||||
args.height,
|
args.height,
|
||||||
*mode,
|
*mode,
|
||||||
|
*num_images,
|
||||||
"-o",
|
"-o",
|
||||||
ntf.name,
|
ntf.name,
|
||||||
]
|
]
|
||||||
)
|
self.logger.debug(f"Running: " + str(shell_cmd_line))
|
||||||
)
|
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[self.kollagen_path, "-r", *directories, *mode, "-o", ntf.name],
|
shell_cmd_line,
|
||||||
check=True,
|
check=True,
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue