fixes to cli & handler

This commit is contained in:
janis
2023-03-15 12:32:50 +01:00
parent 0e15c2a31b
commit 70080953d0
3 changed files with 11 additions and 3 deletions

View File

@@ -10,12 +10,17 @@
import os import os
import sys import sys
import bin.lib.ffmpeg
if ( sys.platform == 'win32' ):
import bin.lib.ffmpeg.ffmpeg
ffmpeg = bin.lib.ffmpeg.ffmpeg
else:
import bin.lib.ffmpeg
ffmpeg = bin.lib.ffmpeg
import configparser import configparser
import time import time
import shutil import shutil
ffmpeg = bin.lib.ffmpeg
# Loading the config file to get user preferred temp path # Loading the config file to get user preferred temp path
config = configparser.ConfigParser() config = configparser.ConfigParser()

View File

@@ -18,4 +18,7 @@ args = ap.parse_args()
handler = bin.handler.Handler() handler = bin.handler.Handler()
handler.handler( 'bin/lib/FidelityFX_CLI.exe', args.inputfile, 'custom', '2x', args.outputfile ) if ( args.scalefactor[ len(args.scalefactor) -1:] == 'x' ):
handler.handler( 'bin/lib/FidelityFX_CLI.exe', args.inputfile, 'custom', args.scalefactor, args.outputfile )
else:
raise NameError( 'Argument Scale does require to be of form 2x!' )