

def _setup_job_file(self, job_id, command_line, dependencies_description=None, env=[]):
    command_line = self._expand_command_line(command_line, dependencies_description)
    script_env = self._job_template_env(job_id, command_line=command_line, env=env)
    script = job_script(**script_env)
    return self._write_job_script(job_id, script)

dataset/ETHPy150Open galaxyproject/pulsar/pulsar/managers/base/directory.py DirectoryBaseManager._setup_job_file/original