parameters: ()
docstring: Ensures current directory is on sys.path, and __main__ directory is not.
  
      Exception: __main__ dir is left alone if it's also pydoc's directory.
docstring_summary: Ensures current directory is on sys.path, and __main__ directory is not.
docstring_tokens: Ensures current directory is on sys . path and __main__ directory is not .
function: def _adjust_cli_sys_path():
      """Ensures current directory is on sys.path, and __main__ directory is not.
  
      Exception: __main__ dir is left alone if it's also pydoc's directory.
      """
      revised_path = _get_revised_path(sys.path, sys.argv[0])
      if revised_path is not None:
          sys.path[:] = revised_path
function_tokens: def _adjust_cli_sys_path ( ) : revised_path = _get_revised_path ( sys . path , sys . argv [ 0 ] ) if revised_path is not None : sys . path [ : ] = revised_path