FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
opencv-python/scripts/__init__.py at master · opencv/opencv-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
opencv
/
opencv-python
Public
Notifications
You must be signed in to change notification settings
Fork
1k
Star
5.4k
Code
Issues
180
Pull requests
19
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
opencv-python
/
scripts
/
__init__.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (19 loc) · 724 Bytes
Breadcrumbs
opencv-python
/
scripts
/
__init__.py
Copy path
File metadata and controls
24 lines (19 loc) · 724 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
.
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"
)
Back
|
FazBrowse Home
|
New Git URL