mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -07:00
)_
This commit is contained in:
parent
98d3657cbc
commit
63c0bdbf16
2 changed files with 2 additions and 8 deletions
|
@ -358,18 +358,13 @@ class InteractBase(object):
|
|||
|
||||
def input_process(self, stdin_fd, sq, str):
|
||||
from core import osex
|
||||
osex.linux_ignore_UserWarning()
|
||||
|
||||
osex.linux_ignore_UserWarning()
|
||||
sys.stdin = os.fdopen(stdin_fd)
|
||||
try:
|
||||
inp = input (str)
|
||||
sq.put (True)
|
||||
except:
|
||||
sq.put (False)
|
||||
sq.close()
|
||||
sq = None
|
||||
import gc
|
||||
gc.collect()
|
||||
|
||||
def input_in_time (self, str, max_time_sec):
|
||||
sq = multiprocessing.Queue()
|
||||
|
@ -386,7 +381,6 @@ class InteractBase(object):
|
|||
break
|
||||
p.terminate()
|
||||
p.join()
|
||||
sq.close()
|
||||
old_stdin = sys.stdin
|
||||
sys.stdin = os.fdopen( os.dup(sys.stdin.fileno()) )
|
||||
old_stdin.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue