Aluode/PerceptionLabPortable
0
1PYTHON_EXTENSIONS_PATHS = [
2 LOADER_DIR
3] + PYTHON_EXTENSIONS_PATHS
4
5ci_and_not_headless = False
6
7try:
8 from .version import ci_build, headless
9
10 ci_and_not_headless = ci_build and not headless
11except:
12 pass
13
14# the Qt plugin is included currently only in the pre-built wheels
15if sys.platform.startswith("linux") and ci_and_not_headless:
16 os.environ["QT_QPA_PLATFORM_PLUGIN_PATH"] = os.path.join(
17 os.path.dirname(os.path.abspath(__file__)), "qt", "plugins"
18 )
19
20# Qt will throw warning on Linux if fonts are not found
21if sys.platform.startswith("linux") and ci_and_not_headless:
22 os.environ["QT_QPA_FONTDIR"] = os.path.join(
23 os.path.dirname(os.path.abspath(__file__)), "qt", "fonts"
24 )
25 