()
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.
Ensures current directory is on sys.path, and __main__ directory is not.
Ensures current directory is on sys . path and __main__ directory is not .
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
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