diff --git a/snakemake/executors/__init__.py b/snakemake/executors/__init__.py index 7a31ffe7e..b3e758591 100644 --- a/snakemake/executors/__init__.py +++ b/snakemake/executors/__init__.py @@ -1020,11 +1020,11 @@ def copy_stdout(executor, process): while process.poll() is None and executor.wait: buf = process.stdout.readline() if buf: - self.stdout.write(buf) + sys.stdout.write(buf) # one final time ... buf = process.stdout.readline() if buf: - self.stdout.write(buf) + sys.stdout.write(buf) def wait(executor, process): while executor.wait: