/
Alx89
/
OpenCV-Python
Обзор
Документация
Войти
/
Alx89
/
OpenCV-Python
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
72
scripts/__init__.py
24 строки
724 B
Andrey Senyaev
Removed useless lines and added replacing lines into init file
18 окт 2021, 17:38
18 окт 2021, 17:38
851182f
Код
Авторство
О чём код?
PYTHON_EXTENSIONS_PATHS = [ LOADER_DIR ] + PYTHON_EXTENSIONS_PATHS ci_and_not_headless = False try: from .version import ci_build, headless ci_and_not_headless = ci_build and not headless except: pass # the Qt plugin is included currently only in the pre-built wheels if sys.platform.startswith("linux") and ci_and_not_headless: os.environ["QT_QPA_PLATFORM_PLUGIN_PATH"] = os.path.join( os.path.dirname(os.path.abspath(__file__)), "qt", "plugins" ) # Qt will throw warning on Linux if fonts are not found if sys.platform.startswith("linux") and ci_and_not_headless: os.environ["QT_QPA_FONTDIR"] = os.path.join( os.path.dirname(os.path.abspath(__file__)), "qt", "fonts" )