def get_command_line(**kwds):
 if getattr(sys, 'frozen', False):
  return ([sys.executable, '--multiprocessing-fork'] + [('%s=%r' % item) for item in kwds.items()])
 else:
  prog = 'from multiprocessing.spawn import spawn_main; spawn_main(%s)'
  prog %= ', '.join((('%s=%r' % item) for item in kwds.items()))
  opts = util._args_from_interpreter_flags()
  return (([_python_exe] + opts) + ['-c', prog, '--multiprocessing-fork'])

def get_command_line ( ** kwds ) : if getattr ( sys , 'frozen' , False ) : return ( [ sys . executable , '--multiprocessing-fork' ] + [ ( '%s=%r' % item ) for item in kwds . items ( ) ] ) else : prog = 'from multiprocessing.spawn import spawn_main; spawn_main(%s)' prog %= ', ' . join ( ( ( '%s=%r' % item ) for item in kwds . items ( ) ) ) opts = util . _args_from_interpreter_flags ( ) return ( ( [ _python_exe ] + opts ) + [ '-c' , prog , '--multiprocessing-fork' ] )
returns prefix of command line used for spawning a child process .