Fix example debug level

This commit is contained in:
dpizetta
2019-06-04 13:08:24 -03:00
parent 40448c50e2
commit 6d282b12e9
+3 -3
View File
@@ -52,6 +52,9 @@ import helpdev
from os.path import abspath, dirname
sys.path.insert(0, abspath(dirname(abspath(__file__)) + '/..'))
# set log for debug
logging.basicConfig(level=logging.DEBUG)
# must be in this place, after setting path, to not need to install
import qdarkstyle
@@ -78,9 +81,6 @@ def main():
# parsing arguments from command line
args = parser.parse_args()
# set log for debug
logging.basicConfig(level=logging.DEBUG)
# to avoid problems when testing without screen
if args.test:
os.environ['QT_QPA_PLATFORM'] = 'offscreen'