in submitit/core/core.py [0:0]
def stdout(self) -> tp.Optional[str]:
"""Returns a string with the content of the print log file
or None if the file does not exist yet
"""
if self._sub_jobs:
stdout_ = [sub_job.stdout() for sub_job in self._sub_jobs]
stdout_not_none = [s for s in stdout_ if s is not None]
if not stdout_not_none:
return None
return "\n".join(stdout_not_none)
return self._get_logs_string("stdout")