mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-08 05:51:40 -07:00
fix for linux
This commit is contained in:
parent
fcbfbdd560
commit
5eca4958b7
2 changed files with 12 additions and 1 deletions
|
@ -384,6 +384,14 @@ class InteractBase(object):
|
||||||
return inp
|
return inp
|
||||||
|
|
||||||
def input_process_skip_pending(self, stdin_fd):
|
def input_process_skip_pending(self, stdin_fd):
|
||||||
|
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)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
|
3
main.py
3
main.py
|
@ -5,6 +5,9 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
if sys.platform != 'win32':
|
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
|
import warnings
|
||||||
warnings.simplefilter(action='ignore', category=UserWarning)
|
warnings.simplefilter(action='ignore', category=UserWarning)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue