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))