- Notifications
You must be signed in to change notification settings - Fork 892
/
Copy path__init__.py
24 lines (19 loc) · 724 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PYTHON_EXTENSIONS_PATHS= [
LOADER_DIR
] +PYTHON_EXTENSIONS_PATHS
ci_and_not_headless=False
try:
from .versionimportci_build, headless
ci_and_not_headless=ci_buildandnotheadless
except:
pass
# the Qt plugin is included currently only in the pre-built wheels
ifsys.platform.startswith("linux") andci_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
ifsys.platform.startswith("linux") andci_and_not_headless:
os.environ["QT_QPA_FONTDIR"] =os.path.join(
os.path.dirname(os.path.abspath(__file__)), "qt", "fonts"
)