Files
ffmpeg_collection/functions.py
Elghinnarisa 19ad920d93 unMcFucking
2022-09-09 19:50:39 +02:00

25 lines
622 B
Python

from functiontest import *
import sys
import subprocess
from pathlib import Path
import os
#droppedFile = sys.argv[1]
#droppedName = Path(droppedFile).name
output_folder_name ="/bulk_convert_out/"
droppedFile = ['test.mkv']
#get path of script location and remove the tail
head_tail = os.path.split(sys.argv[0])
output_path = head_tail[0]
arguments = sys.argv[1:]
#check if output folder exists, otherwise create it
isExist = os.path.exists(output_path+output_folder_name)
if not isExist:
os.makedirs(output_path+output_folder_name)
for file in droppedFile:
subprocess.run(function(file, output_folder_name))