| Current Path : /lib/python3/dist-packages/certbot/__pycache__/ |
| Current File : //lib/python3/dist-packages/certbot/__pycache__/configuration.cpython-38.pyc |
U
�]� � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ddlm
Z
ddlmZ dd lm
Z
ej�e j�G d
d� de��Zdd
� ZdS )z$Certbot user-supplied configuration.� N)�parse)� constants)�errors)�
interfaces)�util)�misc)�osc @ s� e Zd ZdZdd� Zdd� Zdd� Zedd � �Zed
d� �Z dd
� Z
edd� �Zedd� �Zedd� �Z
edd� �Zedd� �Zdd� Zedd� �Zedd� �Zedd� �Zed d!� �Zed"d#� �Zed$d%� �Zed&d'� �Zd(S ))�NamespaceConfiga| Configuration wrapper around :class:`argparse.Namespace`.
For more documentation, including available attributes, please see
:class:`certbot.interfaces.IConfig`. However, note that
the following attributes are dynamically resolved using
:attr:`~certbot.interfaces.IConfig.work_dir` and relative
paths defined in :py:mod:`certbot.constants`:
- `accounts_dir`
- `csr_dir`
- `in_progress_dir`
- `key_dir`
- `temp_checkpoint_dir`
And the following paths are dynamically resolved using
:attr:`~certbot.interfaces.IConfig.config_dir` and relative
paths defined in :py:mod:`certbot.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`
c C sV t �| d|� tj�| jj�| j_tj�| jj�| j_tj�| jj�| j_t | � d S )N� namespace)
�object�__setattr__r �path�abspathr
�
config_dir�work_dirZlogs_dir�check_config_sanity)�selfr
� r �7/usr/lib/python3/dist-packages/certbot/configuration.py�__init__- s
zNamespaceConfig.__init__c C s t | j|�S �N)�getattrr
)r �namer r r �__getattr__7 s zNamespaceConfig.__getattr__c C s t | j||� d S r )�setattrr
)r r �valuer r r r : s zNamespaceConfig.__setattr__c C s&