mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-08 05:51:40 -07:00
_
This commit is contained in:
parent
2af067b18d
commit
55162d6e6c
1 changed files with 5 additions and 0 deletions
|
@ -364,6 +364,11 @@ class InteractBase(object):
|
|||
except:
|
||||
sq.put (False)
|
||||
|
||||
outnull_file = open(os.devnull, 'w')
|
||||
os.dup2 ( outnull_file.fileno(), sys.stderr.fileno() )
|
||||
sys.stderr = outnull_file
|
||||
sys.stdout = outnull_file
|
||||
|
||||
def input_in_time (self, str, max_time_sec):
|
||||
sq = multiprocessing.Queue()
|
||||
p = multiprocessing.Process(target=self.input_process, args=( sys.stdin.fileno(), sq, str))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue