Minor nuisance patch

This commit is contained in:
Miroslav Stampar 2016-02-13 21:28:02 +01:00
parent 78e503d7b2
commit 4237333dca
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,8 @@ import time
import traceback
import warnings
sys.dont_write_bytecode = True
warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning)
warnings.filterwarnings(action="ignore", category=DeprecationWarning)

View File

@ -7,6 +7,9 @@ See the file 'doc/COPYING' for copying permission
import logging
import optparse
import sys
sys.dont_write_bytecode = True
from lib.utils import versioncheck # this has to be the first non-standard import