This commit is contained in:
Colombo 2020-02-29 15:24:14 +04:00
parent c900c65c31
commit 27e24d5d28
4 changed files with 9 additions and 25 deletions

View file

@ -33,12 +33,4 @@ def get_screen_size():
elif 'linux' in sys.platform:
pass
return (1366, 768)
def linux_ignore_UserWarning():
if sys.platform[0:3] != 'win':
# 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.filterwarnings(action='ignore', message='semaphore_tracker')
return (1366, 768)