403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/setuptools/command/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/setuptools/command/__pycache__/setopt.cpython-39.opt-2.pyc
a

��e?�@s�ddlmZddlmZddlmZddlZddlZddlZddlm	Z	gd�Z
ddd	�Zddd�ZGd
d�de	�Z
Gdd�de
�ZdS)�)�convert_path)�log)�DistutilsOptionErrorN)�Command)�config_file�edit_config�option_base�setopt�localcCsh|dkrdS|dkr,tj�tj�tj�d�S|dkrZtjdkrBdpDd}tj�td	|��St	d
|��dS)Nr
z	setup.cfg�globalz
distutils.cfg�user�posix�.�z~/%spydistutils.cfgz7config_file() type must be 'local', 'global', or 'user')
�os�path�join�dirname�	distutils�__file__�name�
expanduserr�
ValueError)�kind�dot�r�=/usr/lib/python3.9/site-packages/setuptools/command/setopt.pyr
srFc		CsFt�d|�t��}dd�|_|�|g�|��D]�\}}|dur\t�d||�|�|�q2|�	|�s~t�d||�|�
|�|��D]p\}}|dur�t�d|||�|�||�|�|�s�t�d||�|�|�q�t�d||||�|�
|||�q�q2t�d	|�|�sBt|d
��}|�|�Wd�n1�s80YdS)NzReading configuration from %scSs|S�Nr)�xrrr�<lambda>&�zedit_config.<locals>.<lambda>zDeleting section [%s] from %szAdding new section [%s] to %szDeleting %s.%s from %sz#Deleting empty [%s] section from %szSetting %s.%s to %r in %sz
Writing %s�w)r�debug�configparserZRawConfigParserZoptionxform�read�items�infoZremove_sectionZhas_sectionZadd_sectionZ
remove_option�options�set�open�write)	�filenameZsettings�dry_runZopts�sectionr'�option�value�frrrrs8



�
�rc@s,eZdZgd�ZddgZdd�Zdd�ZdS)	r))�
global-config�gz0save options to the site-wide distutils.cfg file)�user-config�uz7save options to the current user's pydistutils.cfg file)z	filename=r0z-configuration file to use (default=setup.cfg)r1r3cCsd|_d|_d|_dSr)�
global_config�user_configr+��selfrrr�initialize_optionsSszoption_base.initialize_optionscCsvg}|jr|�td��|jr,|�td��|jdurB|�|j�|sT|�td��t|�dkrjtd|��|\|_dS)Nrrr
�z/Must specify only one configuration file option)r5�appendrr6r+�lenr)r8�	filenamesrrr�finalize_optionsXs
�zoption_base.finalize_optionsN)�__name__�
__module__�__qualname__�user_options�boolean_optionsr9r>rrrrrEs�rc@sBeZdZdZgd�ejZejdgZdd�Zdd�Zdd	�Z	d
S)r	z1set an option in setup.cfg or another config file))zcommand=�czcommand to set an option for)zoption=�oz
option to set)z
set-value=�szvalue of the option)�remove�rzremove (unset) the valuerGcCs&t�|�d|_d|_d|_d|_dSr)rr9�commandr.�	set_valuerGr7rrrr9ws

zsetopt.initialize_optionscCsBt�|�|jdus|jdur&td��|jdur>|js>td��dS)Nz%Must specify --command *and* --optionz$Must specify --set-value or --remove)rr>rIr.rrJrGr7rrrr>~s

zsetopt.finalize_optionscCs*t|j|j|j�dd�|jii|j�dS)N�-�_)rr+rIr.�replacerJr,r7rrr�run�s
�z
setopt.runN)
r?r@rA�descriptionrrBrCr9r>rNrrrrr	is�r	)r
)F)Zdistutils.utilrrrZdistutils.errorsrrr#Z
setuptoolsr�__all__rrrr	rrrr�<module>s

)$

Youez - 2016 - github.com/yon3zu
LinuXploit