another tty fix
This commit is contained in:
parent
b8c94cbc27
commit
374769a3e0
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user