FFMpeg-Compressor: Ignoring the slash at the end of the folder path
This commit is contained in:
parent
3297a3720a
commit
9e83954d1a
1 changed files with 7 additions and 2 deletions
|
@ -8,12 +8,17 @@ import sys
|
|||
import os
|
||||
|
||||
try:
|
||||
orig_folder = sys.argv[1]
|
||||
printer.orig_folder = sys.argv[1]
|
||||
if sys.argv[1][len(sys.argv[1])-1] == "/":
|
||||
arg_path = sys.argv[1][:len(sys.argv[1])-1]
|
||||
else:
|
||||
arg_path = sys.argv[1]
|
||||
except IndexError:
|
||||
print(utils.help_message())
|
||||
exit()
|
||||
|
||||
orig_folder = arg_path
|
||||
printer.orig_folder = arg_path
|
||||
|
||||
printer.bar_init(orig_folder)
|
||||
|
||||
if os.path.exists(f"{orig_folder}_compressed"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue