3
¥Á^%  ã               @   s6   d dl Z d dlZd dlZd dlZG dd„ dejƒZdS )é    Nc                   s8   e Zd Z‡ fdd„Z‡ fdd„Zdd„ Zdd„ Z‡  ZS )	ÚExecutorc                s   t t| ƒj|ƒ d S )N)Úsuperr   Ú__init__)ÚselfÚlog)Ú	__class__© úr/home/psgendb/BIRCHDEV/pkg/SPAdes-3.15.4/linux-x86_64/share/spades/spades_pipeline/executors/executor_save_yaml.pyr      s    zExecutor.__init__c                sH   t t| ƒj|ƒ tj|tjjtj	j
dƒƒ tj|tjjtj	j
dƒƒ d S )Nzrun_spades.shzrun_spades.yaml)r   r   ÚexecuteÚcommands_parserÚwrite_commands_to_shÚosÚpathÚjoinÚoptions_storageÚargsÚ
output_dirÚwrite_commands_to_yaml)r   Úcommands)r   r   r	   r
      s
    zExecutor.executec             C   s   t j||ƒ d S )N)r   r   )r   r   Ú
outputfiler   r   r	   Údump_commands   s    zExecutor.dump_commandsc             C   s   d S )Nr   )r   Úcommandr   r   r	   Ú
touch_file   s    zExecutor.touch_file)Ú__name__Ú
__module__Ú__qualname__r   r
   r   r   Ú__classcell__r   r   )r   r	   r      s   r   )r   Ú	executorsr   r   ÚExecutorBaser   r   r   r   r	   Ú<module>	   s   