parameters: (command, *, return_bool: bool = False, raise_error: bool = False,
                 raise_msg: str = None)
return_statement: return which(command=command, return_bool=return_bool, raise_error=raise_error, raise_msg=raise_msg, env=lenv)
docstring: Test to see if a command is available in Psi4 search path.
  
      Returns
      -------
      str or None
          By default, returns command path if command found or `None` if not.
          Environment is $PSIPATH:$PATH, less any None values.
      bool
          When `return_bool=True`, returns whether or not found.
  
      Raises
      ------
      ModuleNotFoundError
          When `raises_error=True` and command not found.
docstring_summary: Test to see if a command is available in Psi4 search path.
docstring_tokens: Test to see if a command is available in Psi4 search path .
function: def psi4_which(command, *, return_bool: bool = False, raise_error: bool = False,
                 raise_msg: str = None) -> Union[bool, None, str]:
      """Test to see if a command is available in Psi4 search path.
  
      Returns
      -------
      str or None
          By default, returns command path if command found or `None` if not.
          Environment is $PSIPATH:$PATH, less any None values.
      bool
          When `return_bool=True`, returns whether or not found.
  
      Raises
      ------
      ModuleNotFoundError
          When `raises_error=True` and command not found.
  
      """
      lenv = (os.pathsep.join([os.path.abspath(x) for x in os.environ.get('PSIPATH', '').split(os.pathsep) if x != '']) +
              os.pathsep + os.environ.get('PATH', ''))
  
      return which(command=command, return_bool=return_bool, raise_error=raise_error, raise_msg=raise_msg, env=lenv)
function_tokens: def psi4_which ( command , * , return_bool : bool = False , raise_error : bool = False , raise_msg : str = None ) -> Union [ bool , None , str ] : lenv = ( os . pathsep . join ( [ os . path . abspath ( x ) for x in os . environ . get ( 'PSIPATH' , '' ) . split ( os . pathsep ) if x != '' ] ) + os . pathsep + os . environ . get ( 'PATH' , '' ) ) return which ( command = command , return_bool = return_bool , raise_error = raise_error , raise_msg = raise_msg , env = lenv )