mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -07:00
fix input_in_time for linux
This commit is contained in:
parent
72797ce406
commit
90ae68ae61
1 changed files with 4 additions and 2 deletions
|
@ -377,8 +377,10 @@ class InteractBase(object):
|
||||||
break
|
break
|
||||||
if time.time() - t > max_time_sec:
|
if time.time() - t > max_time_sec:
|
||||||
break
|
break
|
||||||
p.terminate()
|
p.terminate()
|
||||||
sys.stdin = os.fdopen( sys.stdin.fileno() )
|
old_stdin = sys.stdin
|
||||||
|
sys.stdin = os.fdopen( os.dup(sys.stdin.fileno()) )
|
||||||
|
old_stdin.close()
|
||||||
return inp
|
return inp
|
||||||
|
|
||||||
def input_process_skip_pending(self, stdin_fd):
|
def input_process_skip_pending(self, stdin_fd):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue