o
    g$
                     @   sV   d dl Z d dlZd dlmZ dd Zdd Zdd Zd	d
 ZdddZeZ	g dZ
dS )    N)__version__c                  C   sD   ddl m}  z| tjdd   W d S  ty!   td Y d S w )Nr   Run   )pylint.lintr   sysargvKeyboardInterruptexit)	PylintRun r   M/home/ubuntu/cloudmapper/venv/lib/python3.10/site-packages/pylint/__init__.py
run_pylint   s   r   c                  C   s   ddl m}  |   d S )Nr   r   )pylint.epylintr   )
EpylintRunr   r   r   run_epylint   s   
r   c                  C   "   ddl m}  | tjdd  dS )zrun pyreverser   r   r   N)pylint.pyreverse.mainr   r   r   )PyreverseRunr   r   r   run_pyreverse#      r   c                  C   r   )zrun symilarr   r   r   N)pylint.checkers.similarr   r   r   )
SimilarRunr   r   r   run_symilar*   r   r   returnc                  C   s   t jd tjdd} t }| dr'| d| dfvr't jd dS | dr=| | ddfvr?t jd dS dS dS )	a  Modify sys path for execution as Python module.

    Strip out the current working directory from sys.path.
    Having the working directory in `sys.path` means that `pylint` might
    inadvertently import user code from modules having the same name as
    stdlib or pylint's own modules.
    CPython issue: https://bugs.python.org/issue33053

    - Remove the first entry. This will always be either "" or the working directory
    - Remove the working directory from the second and third entries
      if PYTHONPATH includes a ":" at the beginning or the end.
      https://github.com/PyCQA/pylint/issues/3636
      Don't remove it if PYTHONPATH contains the cwd or '.' as the entry will
      only be added once.
    - Don't remove the working directory from the rest. It will be included
      if pylint is installed in an editable configuration (as the last item).
      https://github.com/PyCQA/pylint/issues/4161
    r   
PYTHONPATH :z:.z.:r   N)	r   pathpoposenvirongetgetcwd
startswithendswith)env_pythonpathcwdr   r   r   modify_sys_path1   s   r(   )r   versionr(   )r   N)r    r   pylint.__pkginfo__r   r   r   r   r   r(   r)   __all__r   r   r   r   <module>   s   	
