o
    $¼"bƒ  ã                   @   sP   d dl mZmZ d dlZd dlmZmZ d dlmZ eeƒG dd„ de	ƒƒZ
dS )é    )Úabsolute_importÚunicode_literalsN)ÚABCMetaÚabstractmethod)Úadd_metaclassc                   @   s<   e Zd ZdZdd„ Zedd„ ƒZedd„ ƒZedd	„ ƒZ	d
S )Ú	Activatorz8Generates an activate script for the virtual environmentc                 C   s,   |j dkrtj t ¡ ¡| _dS |j | _dS )z…Create a new activator generator.

        :param options: the parsed options as defined within :meth:`add_parser_arguments`
        Ú.N)ÚpromptÚosÚpathÚbasenameÚgetcwdÚflag_prompt)ÚselfÚoptions© r   úA/usr/lib/python3/dist-packages/virtualenv/activation/activator.pyÚ__init__   s   ,zActivator.__init__c                 C   ó   dS )zÊCheck if the activation script is supported in the given interpreter.

        :param interpreter: the interpreter we need to support
        :return: ``True`` if supported, ``False`` otherwise
        Tr   )ÚclsÚinterpreterr   r   r   Úsupports   ó   zActivator.supportsc                 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   Úparserr   r   r   r   Úadd_parser_arguments   s    zActivator.add_parser_argumentsc                 C   s   t ‚)zÊGenerate the activate script for the given creator.

        :param creator: the creator (based of :class:`virtualenv.create.creator.Creator`) we used to create this         virtual environment
        )ÚNotImplementedError)r   Úcreatorr   r   r   Úgenerate&   r   zActivator.generateN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úclassmethodr   r   r   r   r   r   r   r   r   	   s    

r   )Ú
__future__r   r   r
   Úabcr   r   Úsixr   Úobjectr   r   r   r   r   Ú<module>   s    