o
    [h6                     @   sZ   d dl Z d dlmZ d dlmZ d dlmZ ddlmZ e 	dZ
dZG d	d
 d
eZdS )    N)session_scoperun_all_bots_for_session_config)AUTO_NAME_BOTS_EXPORT_FOLDER   )BaseCommandZotreezRun oTree botsc                   @   s    e Zd ZeZdd Zdd ZdS )Commandc                 C   sN   |j dddd |j dtddd |j ddtd	d
d |j ddtd	dd d S )Nsession_config_name?z3If omitted, all sessions in SESSION_CONFIGS are run)nargshelpnum_participantsz>Number of participants (if omitted, use num_demo_participants))typer   r   z--exportexport_pathzSaves the data generated by the tests. Runs the "export data" command, outputting the CSV files to the specified directory, or an auto-generated one.)r   constdestr   z--savezAlias for --export.)add_argumentintr   )selfparser r   u/home/ubuntu/experiments/live_experiments/Pythonexperiments/Otree/venv/lib/python3.10/site-packages/otree/cli/bots.pyadd_arguments   s2   	
zCommand.add_argumentsc                K   s   t |||d d S )N)r	   r   r   r   )r   r	   r   r   optionsr   r   r   handle4   s
   
zCommand.handleN)__name__
__module____qualname__MSG_BOTS_HELPr   r   r   r   r   r   r   r      s    %r   )loggingZotree.databaser   Zotree.bots.runnerr   Zotree.constantsr   baser   	getLoggerloggerr   r   r   r   r   r   <module>   s    
