Skip to content

Commit 1fdea10

Browse files
jet-logicjet-logic
authored andcommitted
again try stdin
1 parent ddd67f9 commit 1fdea10

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

runce/spawn.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ def spawn(
7575
so = se = Path(out_file) if out_file else data_dir / f"{base_name}.log"
7676
po_kwa["stdout"] = so.open(f"{mode}b")
7777
po_kwa["stderr"] = STDOUT
78-
# if po_kwa.get("stdin") is None:
79-
# from sys import stdin
80-
81-
# try:
82-
# no = stdin.buffer.fileno()
83-
# except Exception as ex:
84-
# pass
85-
# else:
86-
# po_kwa["stdin"] = stdin.buffer
78+
if po_kwa.get("stdin") is None:
79+
from sys import stdin
80+
81+
try:
82+
no = stdin.buffer.fileno()
83+
except Exception as ex:
84+
pass
85+
else:
86+
po_kwa["stdin"] = stdin.buffer
8787

8888
po_kwa.setdefault("start_new_session", True)
8989
po_kwa.setdefault("close_fds", True)

0 commit comments

Comments
 (0)