ok
Direktori : /lib/python3.6/site-packages/certbot/compat/__pycache__/ |
Current File : //lib/python3.6/site-packages/certbot/compat/__pycache__/misc.cpython-36.pyc |
3 گa� � @ s� d Z ddlmZ ddlZddlZddlZddlZddlmZ ddlm Z ddl Z ddlmZ ddl mZ y8ddlmZ dd lmZ dd lmZ ddlmZ dZW n ek r� d ZY nX eje�Zer�dddgng Zdd�dd�Zdd�dd�Ze ee! e!d�dd�Z"dddd�Z#dddd�Z$e!e!d �d!d"�Z%e!e!d#�d$d%�Z&d+e!e!ee' e e(e!e!f d&�d'd(�Z)d,e!e!ee' e e!e!f d&�d)d*�Z*dS )-zk This compat module handles various platform specific calls that do not fall into one particular category. � )�absolute_importN)�Optional)�Tuple)�errors)�os)�error)�shell)�GetStdHandle)�STD_OUTPUT_HANDLEFTz /usr/sbinz/usr/local/binz/usr/local/sbin)�returnc C s t rtj� dkrtjd��dS )z� On Windows, raise if current shell does not have the administrative rights. Do nothing on Linux. :raises .errors.Error: If the current shell does not have administrative rights on Windows. r zAError, certbot must be run on a shell with administrative rights.N)� POSIX_MODE� shellwin32Z IsUserAnAdminr �Error� r r �/usr/lib/python3.6/misc.py�+raise_for_non_administrative_windows_rights"