bugfix in paths_to_openscad

This commit is contained in:
Mario Voigt 2022-12-03 20:38:23 +01:00
parent c689c81d51
commit b8c94cbc27

View File

@ -1040,7 +1040,7 @@ class PathsToOpenSCAD(inkex.EffectExtension):
a.append(["L", [x2, y2]]) a.append(["L", [x2, y2]])
self.getPathVertices(a, node, matNew) self.getPathVertices(a, node, matNew)
elif node.TAG in ["polygon", "polyline"]: elif node.tag in ["polygon", "polyline"]:
# Convert # Convert
# #
@ -1414,7 +1414,6 @@ module chamfer_sphere(rad=chamfer, res=chamfer_fn)
try: try:
with subprocess.Popen(cmd, shell=True, stdin=tty, stdout=tty, stderr=tty) as proc: with subprocess.Popen(cmd, shell=True, stdin=tty, stdout=tty, stderr=tty) as proc:
proc.wait() proc.wait()
tty.close()
except OSError as e: except OSError as e:
raise OSError("%s failed: errno=%d %s" % (cmd, e.errno, e.strerror)) raise OSError("%s failed: errno=%d %s" % (cmd, e.errno, e.strerror))
try: try: