aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpux <pux@pux.dom>2020-02-13 06:28:29 +0100
committerpux <pux@pux.dom>2020-02-13 06:28:29 +0100
commit0f7854e41837e575449c44b3e92782b6efc4320d (patch)
treeb57c36300c19b296a78709cf4491d403ef21712d
parent366e4bb6fe99e455cc3c0f78c320e4d1427248da (diff)
downloadnstvid-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-xnstvid.py5
1 files 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()
in each repos: see "about"-tab (if existing) for more details / README.
mailto contact at omeckman dot net
all timestamps in UTC (German winter time: UTC+01:00, summer time: UTC+02:00)
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa