
     th                     Z    d dl Z d dlZd dlmZmZ ddlmZ ddedee         defd	Zd
 Z	dS )    N)AnyStrOptional   )utilsFcwdpathno_sslc                    | rt          j                    }t          j        ||          }|st	          j        d           dS t           j                            |          }dt           j        vr|t           j        d<   nJ|t           j        d         vr6|t          j	                    z   t           j        d         z   t           j        d<   |S )a  
    Appends the directory of the chromedriver binary file to PATH.

    :param cwd: Flag indicating whether to download to current working directory. If the `cwd` is True, then path argument will be ignored.
    :param path: Specify the path where the Chrome driver will be installed. If the `cwd` value is True, this value is ignored.
    :param no_ssl: Determines whether or not to use the encryption protocol when downloading the chrome driver.
    :return: The file path of chromedriver
    zCan not download chromedriver.NPATH)
osgetcwdr   download_chromedriverloggingdebugr   dirnameenvironget_variable_separator)r   r   r	   chromedriver_filepathchromedriver_dirs        w/var/www/html/mycamper/aliexpress-site/backend/venv/lib/python3.11/site-packages/chromedriver_autoinstaller/__init__.pyinstallr   
   s      y{{!7fEE  6777w'<==RZ-
6	F!3	3	3u;===
6@RR 	
6 !     c                  (    t          j                    S )zW
    Get installed version of chrome on client

    :return: The version of chrome
    )r   get_chrome_version r   r   r   r   #   s     #%%%r   )FNF)
r   r   typingr   r    r   boolr   r   r   r   r   <module>r      s     				 # # # # # # # #      ! ! !Xf%5 !d ! ! ! !2& & & & &r   