diff options
author | pux <pux@pux.dom> | 2020-02-13 06:28:29 +0100 |
---|---|---|
committer | pux <pux@pux.dom> | 2020-02-13 06:28:29 +0100 |
commit | 0f7854e41837e575449c44b3e92782b6efc4320d (patch) | |
tree | b57c36300c19b296a78709cf4491d403ef21712d | |
parent | 366e4bb6fe99e455cc3c0f78c320e4d1427248da (diff) | |
download | nstvid-0f7854e41837e575449c44b3e92782b6efc4320d.tar.gz nstvid-0f7854e41837e575449c44b3e92782b6efc4320d.tar.bz2 nstvid-0f7854e41837e575449c44b3e92782b6efc4320d.zip |
escaping is ok, style_image can be more than 1 and comma separated...
...thus a filename with a comma in it doesn't work
-rwxr-xr-x | nstvid.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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() |