

def _write_job_script(self, job_id, contents):
    self._write_job_file(job_id, 'command.sh', contents)
    script_path = self._job_file(job_id, 'command.sh')
    os.chmod(script_path, ((stat.S_IEXEC | stat.S_IWRITE) | stat.S_IREAD))
    return script_path

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