def _fork_win32(args, cwd=None):
 if (args[0] == u'git-dag'):
  args = ([sys.executable] + args)
 args[0] = _win32_find_exe(args[0])
 if PY3:
  argv = [decode(arg) for arg in args]
 else:
  argv = [encode(arg) for arg in args]
 DETACHED_PROCESS = 8
 return subprocess.Popen(argv, cwd=cwd, creationflags=DETACHED_PROCESS).pid

def _fork_win32 ( args , cwd = None ) : if ( args [ 0 ] == u'git-dag' ) : args = ( [ sys . executable ] + args ) args [ 0 ] = _win32_find_exe ( args [ 0 ] ) if PY3 : argv = [ decode ( arg ) for arg in args ] else : argv = [ encode ( arg ) for arg in args ] DETACHED_PROCESS = 8 return subprocess . Popen ( argv , cwd = cwd , creationflags = DETACHED_PROCESS ) . pid
launch a background process using crazy win32 voodoo .