Update fsrimagevideoupscaler-cli.py
Possible fix for crash on Windows
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import bin.handler
|
import bin.handler
|
||||||
import os
|
import os
|
||||||
import time
|
import multiprocessing
|
||||||
|
|
||||||
ap = argparse.ArgumentParser( description='FSRImageVideoUpscaler - CLI' )
|
ap = argparse.ArgumentParser( description='FSRImageVideoUpscaler - CLI' )
|
||||||
ap.add_argument( 'inputfile', help='File path for the video / image to be upscaled' )
|
ap.add_argument( 'inputfile', help='File path for the video / image to be upscaled' )
|
||||||
@@ -23,6 +23,8 @@ handler = bin.handler.Handler()
|
|||||||
|
|
||||||
go = True;
|
go = True;
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
multiprocessing.freeze_support();
|
||||||
if ( os.path.exists( args.outputfile ) ):
|
if ( os.path.exists( args.outputfile ) ):
|
||||||
if ( input( 'File already exists. Do you want to replace it? (y/n) ' ).lower() == 'y' ):
|
if ( input( 'File already exists. Do you want to replace it? (y/n) ' ).lower() == 'y' ):
|
||||||
go = True
|
go = True
|
||||||
|
|||||||
Reference in New Issue
Block a user