diff --git a/python/lammps/pylammps.py b/python/lammps/pylammps.py index 94af3541a1..2ad34a7a88 100644 --- a/python/lammps/pylammps.py +++ b/python/lammps/pylammps.py @@ -34,7 +34,7 @@ from .core import lammps class OutputCapture(object): """ Utility class to capture LAMMPS library output """ def __init__(self): - self.stdout_fd = sys.stdout.fileno() + self.stdout_fd = 1 self.captured_output = "" def __enter__(self):