mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-13 13:17:57 +03:00
27 lines
739 B
Python
27 lines
739 B
Python
|
import os
|
||
|
import sys
|
||
|
import warnings
|
||
|
|
||
|
# Dogtail is noisy with GTK and GI deprecation warnings
|
||
|
warnings.simplefilter("ignore")
|
||
|
|
||
|
import dogtail.config
|
||
|
|
||
|
# Perform 5 search attempts if a widget lookup fails (default 20)
|
||
|
dogtail.config.config.searchCutoffCount = 5
|
||
|
|
||
|
# Use .4 second delay between each action (default 1)
|
||
|
dogtail.config.config.actionDelay = .4
|
||
|
|
||
|
# Turn off needlessly noisy debugging
|
||
|
DOGTAIL_DEBUG = False
|
||
|
dogtail.config.config.logDebugToStdOut = DOGTAIL_DEBUG
|
||
|
dogtail.config.config.logDebugToFile = DOGTAIL_DEBUG
|
||
|
|
||
|
# Dogtail screws with the default excepthook, disabling output if we turned
|
||
|
# off logging, so fix it
|
||
|
sys.excepthook = sys.__excepthook__
|
||
|
|
||
|
# Needed so labels are matched in english
|
||
|
os.environ['LANG'] = 'en_US.UTF-8'
|