From 374769a3e0303b6f423e18831a0466a3631d232c Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sat, 3 Dec 2022 20:42:17 +0100 Subject: [PATCH] another tty fix --- .../fablabchemnitz/paths_to_openscad/paths_to_openscad.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/extensions/fablabchemnitz/paths_to_openscad/paths_to_openscad.py b/extensions/fablabchemnitz/paths_to_openscad/paths_to_openscad.py index 0ccc3a5..65accaf 100644 --- a/extensions/fablabchemnitz/paths_to_openscad/paths_to_openscad.py +++ b/extensions/fablabchemnitz/paths_to_openscad/paths_to_openscad.py @@ -1408,11 +1408,7 @@ module chamfer_sphere(rad=chamfer, res=chamfer_fn) pass if not running: try: - tty = open("/dev/tty", "w") - except Exception: - tty = subprocess.PIPE - try: - with subprocess.Popen(cmd, shell=True, stdin=tty, stdout=tty, stderr=tty) as proc: + with subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) as proc: proc.wait() except OSError as e: raise OSError("%s failed: errno=%d %s" % (cmd, e.errno, e.strerror))