From 0f7854e41837e575449c44b3e92782b6efc4320d Mon Sep 17 00:00:00 2001 From: pux Date: Thu, 13 Feb 2020 06:28:29 +0100 Subject: escaping is ok, style_image can be more than 1 and comma separated... ...thus a filename with a comma in it doesn't work --- nstvid.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nstvid.py b/nstvid.py index d663db3..e8fffca 100755 --- a/nstvid.py +++ b/nstvid.py @@ -15,7 +15,7 @@ from gooey import Gooey, GooeyParser import subprocess import os import glob -#from shlex import quote +import shlex @Gooey(default_size=(800, 600), terminal_font_color="#FFFFFF", \ header_bg_color="#000000") @@ -23,7 +23,7 @@ def init(): parser = GooeyParser(description = \ "nstvid - Neural Style Transfer Video Creator") - parser.add_argument("style_image", help="Style image", \ + parser.add_argument("style_image", help="Style image(s) separated by comma", \ widget="FileChooser") parser.add_argument("input_video", help="Source video", \ widget="FileChooser", default="/home/pux/tmp/nstest/in.mp4") @@ -114,4 +114,5 @@ def main(): if __name__ == '__main__': params = init() + print(params.style_image) main() -- cgit v1.2.2-1-g5e49