Commits

Anonymous committed 3aa612c

remove trailing slashes from paths

Comments (0)

Files changed (1)

convert_to_ogv.py

 
 from sys import argv
 from os import listdir, makedirs
-from os.path import isdir, dirname, join, abspath
+from os.path import isdir, dirname, join, abspath, normpath
 from subprocess import call
 
 # First parse cmdline args
 target = argv[-1]
 argv = argv[1:-1]
 
+# Remove any trailing "/"
+argv = [normpath(p) for p in argv]
+
 # We should now have only filepaths in the argv
 
 # Now we need a convenience function to change the suffix