ok
Direktori : /lib/python3.6/site-packages/certbot/__pycache__/ |
Current File : //lib/python3.6/site-packages/certbot/__pycache__/configuration.cpython-36.pyc |
3 گa�+ � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddl mZ dd lm Z dd lmZ ddlmZ G dd � d �Zedd�dd�ZdS )z$Certbot user-supplied configuration.� N)�Any)�List)�Optional)�parse)�errors)�util)� constants)�misc)�osc @ s e Zd ZdZejdd�dd�Zeed�dd�Z eedd �d d�Z eed�d d��Zej edd�dd��Zeee d�dd��Zej edd�dd��Zeed�dd��Zej edd�dd��Zeed�dd��Zej edd�dd��Zeed�dd��Zej edd�d d��Zeed�d!d"��Zeed�d#d$��Zeed�d%d&��Zeed�d'd(��Zeed�d)d*��Zeed�d+d,��Zeed�d-d.��Zeed�d/d0��Zeed�d1d2��Zeed�d3d4��Zeed�d5d6��Zeed�d7d8��Z eed�d9d:��Z!ee"e d�d;d<��Z#eed�d=d>��Z$eed�d?d@��Z%eed�dAdB��Z&eee d�dCdD��Z'eed�dEdF��Z(eedG�dHdI�Z)eed�dJdK��Z*eed�dLdM��Z+eed�dNdO��Z,eed�dPdQ��Z-eed�dRdS��Z.eed�dTdU��Z/eed�dVdW��Z0eed�dXdY��Z1ed dZ�d[d\�Z2dS )]�NamespaceConfiga4 Configuration wrapper around :class:`argparse.Namespace`. Please note that the following attributes are dynamically resolved using :attr:`~certbot.configuration.NamespaceConfig.work_dir` and relative paths defined in :py:mod:`certbot._internal.constants`: - `accounts_dir` - `csr_dir` - `in_progress_dir` - `key_dir` - `temp_checkpoint_dir` And the following paths are dynamically resolved using :attr:`~certbot.configuration.NamespaceConfig.config_dir` and relative paths defined in :py:mod:`certbot._internal.constants`: - `default_archive_dir` - `live_dir` - `renewal_configs_dir` :ivar namespace: Namespace typically produced by :meth:`argparse.ArgumentParser.parse_args`. :type namespace: :class:`argparse.Namespace` N)� namespace�returnc C sZ | t j| d|� tjj| jj�| j_tjj| jj�| j_tjj| jj�| j_t | � d S )Nr ) �object�__setattr__r �path�abspathr � config_dir�work_dirZlogs_dir�_check_config_sanity)�selfr � r �#/usr/lib/python3.6/configuration.py�__init__+ s zNamespaceConfig.__init__)�namer c C s t | j|�S )N)�getattrr )r r r r r �__getattr__9 s zNamespaceConfig.__getattr__)r �valuer c C s t | j||� d S )N)�setattrr )r r r r r r r <