OwlCyberSecurity - MANAGER
Edit File: activator.cpython-312.pyc
� ^��g� � �D � d dl mZ d dlZd dlmZmZ G d� de� ZdgZy)� )�annotationsN)�ABC�abstractmethodc �H � e Zd ZdZdd�Zed� � Zed� � Zed� � Z y)� Activatorz6Generates activate script for the virtual environment.c � � |j dk( r7t j j t j � � | _ y|j | _ y)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�optionss �N/opt/hc_python/lib/python3.12/site-packages/virtualenv/activation/activator.py�__init__zActivator.__init__ s; � � =D�N�N�c�<Q�2�7�7�+�+�B�I�I�K�8���W^�We�We��� c � � y)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 T� )�cls�interpreters r �supportszActivator.supports s � � r c � � y)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 s r �add_parser_argumentszActivator.add_parser_arguments s � r c � � t �)z� Generate 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 �generatezActivator.generate% s � � "�!r N)�return�None) �__name__� __module__�__qualname__�__doc__r �classmethodr r r r r r r r r sG � �@�f� �� �� �� �� �"� �"r r )� __future__r r �abcr r r �__all__r r r �<module>r+ s'