mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -07:00
fix for linux
This commit is contained in:
parent
5eca4958b7
commit
dbf28eeebf
1 changed files with 8 additions and 0 deletions
|
@ -357,6 +357,14 @@ class InteractBase(object):
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def input_process(self, stdin_fd, sq, str):
|
def input_process(self, stdin_fd, sq, str):
|
||||||
|
import sys
|
||||||
|
if sys.platform != 'win32':
|
||||||
|
# fix for Linux , Ignoring :
|
||||||
|
# /usr/lib/python3.6/multiprocessing/semaphore_tracker.py:143:
|
||||||
|
# UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown
|
||||||
|
import warnings
|
||||||
|
warnings.simplefilter(action='ignore', category=UserWarning)
|
||||||
|
|
||||||
sys.stdin = os.fdopen(stdin_fd)
|
sys.stdin = os.fdopen(stdin_fd)
|
||||||
try:
|
try:
|
||||||
inp = input (str)
|
inp = input (str)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue