()
Run code for process object if this in not the main process
Run code for process object if this in not the main process
Run code for process object if this in not the main process
def freeze_support():
    '''
    Run code for process object if this in not the main process
    '''
    if is_forking(sys.argv):
        kwds = {}
        for arg in sys.argv[2:]:
            name, value = arg.split('=')
            if value == 'None':
                kwds[name] = None
            else:
                kwds[name] = int(value)
        spawn_main(**kwds)
        sys.exit()
def freeze_support ( ) : if is_forking ( sys . argv ) : kwds = { } for arg in sys . argv [ 2 : ] : name , value = arg . split ( '=' ) if value == 'None' : kwds [ name ] = None else : kwds [ name ] = int ( value ) spawn_main ( * * kwds ) sys . exit ( )