
    3i                        d dl mZ d dlZd dlmZmZ d dlmZ erd dlm	Z	 d dl
mZ d dlmZ d dlmZ d d	lmZ  G d
 de      ZdgZy)    )annotationsN)ABCabstractmethod)TYPE_CHECKING)ArgumentParser)Path)
PythonInfo)VirtualEnvOptions)Creatorc                  N    e Zd ZdZddZedd       Zed	d       Zed
d       Z	y)	Activatorz6Generates activate script for the virtual environment.c                    |j                   dk(  r7t        j                  j                  t        j                               | _        y|j                   | _        y)zCreate 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optionss     R/var/www/opsc/venv/lib/python3.12/site-packages/virtualenv/activation/activator.py__init__zActivator.__init__   s;     =DNNc<Q277++BIIK8W^WeWe    c                     y)zCheck if the activation script is supported in the given interpreter.

        :param interpreter: the interpreter we need to support

        :returns: ``True`` if supported, ``False`` otherwise

        T )clsinterpreters     r   supportszActivator.supports   s     r   c                     y)zAdd CLI arguments for this activation script.

        :param parser: the CLI parser
        :param interpreter: the interpreter this virtual environment is based of

        Nr   )r   parserr   s      r   add_parser_argumentszActivator.add_parser_arguments'   s    r   c                    t         )zGenerate 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   creators     r   generatezActivator.generate0   s
     "!r   N)r   r
   returnNone)r   r	   r'   bool)r!   r   r   r	   r'   r(   )r%   r   r'   z
list[Path])
__name__
__module____qualname____doc__r   classmethodr   r"   r   r&   r   r   r   r   r      sG    @f     " "r   r   )
__future__r   r   abcr   r   typingr   argparser   pathlibr   python_discoveryr	   virtualenv.config.cli.parserr
   virtualenv.create.creatorr   r   __all__r   r   r   <module>r8      s<    " 	 #  '+>1'" '"V r   