original_docstring:  Generic process execute method. Returns pid. 
docstring: Generic process execute method. Returns pid.
docstring_tokens: Generic process execute method . Returns pid .
code: def execute_cmd(cmd: List[str], is_console_app: bool) -> int:
      """ Generic process execute method. Returns pid. """
      # Linux call errors on creationflags argument, so the calls must be separated
      if platform.system() == "Windows":
          creationflags = 0
          if is_console_app:
              creationflags = subprocess.CREATE_NEW_CONSOLE
          # don't use 'executable' arg of Popen, because then shell scripts won't execute correctly
          proc = subprocess.Popen(cmd, creationflags=creationflags)
          return proc.pid
      elif platform.system() == "Linux":
          proc = subprocess.Popen(cmd)
          return proc.pid
      return 0
code_tokens: def execute_cmd ( cmd : List [ str ] , is_console_app : bool ) -> int : if platform . system ( ) == "Windows" : creationflags = 0 if is_console_app : creationflags = subprocess . CREATE_NEW_CONSOLE proc = subprocess . Popen ( cmd , creationflags = creationflags ) return proc . pid elif platform . system ( ) == "Linux" : proc = subprocess . Popen ( cmd ) return proc . pid return 0
short_docstring: Generic process execute method.
short_docstring_tokens: Generic process execute method .
comment: """ Generic process execute method. Returns pid. """$SEP$# Linux call errors on creationflags argument, so the calls must be separated
  $SEP$# don't use 'executable' arg of Popen, because then shell scripts won't execute correctly
  