File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/virtualenv/activation/__pycache__/activator.cpython-310.pyc
Back
o ;j� � @ s� d dl mZ d dlZd dlmZmZ d dlmZ er8d dlm Z d dl mZ d dlm Z d dlmZ d d lmZ G d d� de�ZdgZdS )� )�annotationsN)�ABC�abstractmethod)� TYPE_CHECKING)�ArgumentParser)�Path)� PythonInfo)�VirtualEnvOptions)�Creatorc @ sD e Zd ZdZddd�Zeddd��Zeddd��Zeddd��Z dS )� Activatorz6Generates activate script for the virtual environment.�optionsr �return�Nonec C s, |j dkrtj�t�� �| _dS |j | _dS )z�Create a new activator generator. :param options: the parsed options as defined within :meth:`add_parser_arguments` �.N)�prompt�os�path�basename�getcwdZflag_prompt)�selfr � r �S/opt/saltstack/salt/lib/python3.10/site-packages/virtualenv/activation/activator.py�__init__ s ,zActivator.__init__�interpreterr �boolc C � dS )z�Check if the activation script is supported in the given interpreter. :param interpreter: the interpreter we need to support :returns: ``True`` if supported, ``False`` otherwise Tr )�clsr r r r �supports s zActivator.supports�parserr c C r )z�Add CLI arguments for this activation script. :param parser: the CLI parser :param interpreter: the interpreter this virtual environment is based of Nr )r r r r r r �add_parser_arguments'