mirror of
https://github.com/ColinDuquesnoy/QDarkStyleSheet.git
synced 2026-08-29 16:40:31 +08:00
Fix example debug level
This commit is contained in:
+3
-3
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user