fixes to cli & handler
This commit is contained in:
Binary file not shown.
@@ -10,12 +10,17 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
if ( sys.platform == 'win32' ):
|
||||||
|
import bin.lib.ffmpeg.ffmpeg
|
||||||
|
ffmpeg = bin.lib.ffmpeg.ffmpeg
|
||||||
|
else:
|
||||||
import bin.lib.ffmpeg
|
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()
|
||||||
|
|||||||
@@ -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!' )
|
||||||
Reference in New Issue
Block a user