gPddlmZddlmZddlmZddlmZGddeZdgZ y) ) annotations)ArgumentTypeError) OrderedDict)ComponentBuilderc8eZdZdfd ZdZdZdZdZxZS)ActivationSelectorcd|_tfd|jdjD}t||d|d|j _d|_y)Nc3PK|]\}}|js||fywN)supports).0kv interpreters O/opt/hc_python/lib/python3.12/site-packages/virtualenv/run/plugin/activators.py z.ActivationSelector.__init__.. s* Jtq!ajjYdNeQFJs& &zvirtualenv.activate activatorszoptions for activation scripts) defaultroptionsitemssuper__init__parser descriptionactive)selfrrpossible __class__s ` rrzActivationSelector.__init__ s\  #||,ABHHJ   flHE"B  cdj||_|jjd||jddd|jy)N,z--comma_sep_listFz1activators to generate - default is all supported)rmetavarrequiredhelptype)joinrr add_argument_extract_activators)rnamechoicess radd_selector_arg_parsez)ActivationSelector.add_selector_arg_parsesKxx(    KLL$D)) ! r c|jdDcgc]#}|js|j%}}|Dcgc]}||jvs|}}|rddj|}t ||Scc}wcc}w)Nr"z+the following activators are not available )splitstriprr(r)r entered_streelementsmissingmsgs rr*z&ActivationSelector._extract_activatorss'2'8'8'=K'=!AGGI'=K&Ah!4==*@1hA ?@Q?RSC#C( ( LAsA?A?BBc|j|jur|j|jn |j}|jj Dcic] \}}||vs ||c}}|_|j jddddd|j jD](}|j|j |j*ycc}}w)Nz--promptpromptzsprovides an alternative prompt prefix for this environment (value of . means name of the current working directory))destr$r&r) rrr*rrrrr)valuesadd_parser_argumentsr)rrselected_activatorsrr activators rhandle_selected_arg_parsez,ActivationSelector.handle_selected_arg_parse&s6=6H6HDLL6XD $ $T\\ 2^e^p^p )- (;(;(=Z(=1FYAYq!t(=Z    K ! ++-I  * *4;;8H8H I.[s  C*Cch|jjDcgc] }|| c}Scc}wr )rr9)rractivator_classs rcreatezActivationSelector.create8s.@D @R@R@TU@T_(@TUUUs/)returnNone) __name__ __module__ __qualname__rr-r*r=r@ __classcell__)rs@rr r s  J$Vr r N) __future__rargparser collectionsrbaserr __all__r rrMs-"&#"0V)0Vh r