Файловый менеджер - Редактировать - /usr/lib64/python3.6/site-packages/samba/__pycache__/getopt.cpython-36.pyc
Ðазад
3 ��d�= � @ s� d Z dZddlZddlmZ ddlZddlmZmZmZm Z ddl Z ddlmZ ej ZG dd� dej�ZG d d � d e�ZG dd� dej�Zd d� Zdd� ZG dd� dej�ZG dd� de�Zdd� ZG dd� dej�ZdS )z7Support for parsing Samba-related command-line options.ZrestructuredText� N)�copy)�Credentials�AUTO_USE_KERBEROS�DONT_USE_KERBEROS�MUST_USE_KERBEROS)�get_burnt_commandlinec @ sH e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dS )�SambaOptionsz+General Samba-related command line options.c C s ddl m} |� ttj�}|d k rjydd l}|j|� W n. tk rh d}tjj|� tjj � Y nX ddl m} tj j| |d� | jdddtd d | jd� | jdd dtdd| jd� | jddtdd| jd� | jddtdd| jd� d | _|� | _d | _d S )Nr )�fault_setupz�WARNING: Using passwords on command line is insecure. Installing the setproctitle python module will hide these from shortly after program start. )�LoadParmzSamba Common Optionsz-sz--configfile�callback�FILEzConfiguration file)�action�type�metavar�helpr z-dz--debuglevelZ DEBUGLEVELzdebug levelz--optionZOPTIONz%set smb.conf option from command linez--realmZREALMzset the realm name)�sambar r �sys�argv�setproctitle�ModuleNotFoundError�stderr�write�flushZsamba.paramr �optparse�OptionGroup�__init__� add_option�str�_load_configfile�_set_debuglevel�_set_option� _set_realm�_configfile�_lp�realm)�self�parserr Z new_proctitler �msgr � r( �/usr/lib64/python3.6/getopt.pyr ( s: zSambaOptions.__init__c C s | j S )z?Return path to the smb.conf file specified on the command line.)r"