Alexander Alekhin
bd26104088
python(loader): add workaround to detect and patch sys.path[0]
4 years ago
Alexander Alekhin
43940f7ffc
pre: OpenCV 3.4.15 (version++)
4 years ago
CSBVision
ec32061f5f
Update __init__.py to support symbolic links
...
Currently, the LOADER_DIR is set as os.path.dirname(os.path.abspath(__file__)). This does not point to the true library path if the cv2 folder is symlinked into the Python package directory such that importing cv2 under Python fails. The proposed change only resolves symbolic links correctly by calling os.path.realpath(__file__) first and does not change anything if __file__ contains no symbolic link.
4 years ago
Alexander Alekhin
a123c48d4d
pre: OpenCV 3.4.14 (version++)
4 years ago
Alexander Alekhin
b51ae87828
samples: check for Python 3.9
4 years ago
Alexander Alekhin
36d771affc
python: restore sys.path in bootstrap()
...
- multiprocessing need to start from bootstrap code
- loading may fail due to missing os.add_dll_directory() calls
4 years ago
Alexander Alekhin
9485113923
pre: OpenCV 3.4.13 (version++)
4 years ago
Alexander Alekhin
50ff40d684
pre: OpenCV 3.4.12 (version++)
4 years ago
Alexander Alekhin
a43e3bebe6
pre: OpenCV 3.4.11 (version++)
5 years ago
Alexander Alekhin
b7ecaceda8
pre: OpenCV 3.4.10 (version++)
...
- Android Manager version is not increased (stuck on 3.49)
5 years ago
cyy
450b96510e
fixes #16500
5 years ago
Alexander Alekhin
15612ebd39
python: enable Python 3.8
5 years ago
Alexander Alekhin
4ec4ec844f
python: fix issue with bindings loading on Python 3.8
5 years ago
Alexander Alekhin
76a27e3399
pre: OpenCV 3.4.9 (version++)
5 years ago
gal0is
bb7dc5f992
Solve the import issue in Python2.
6 years ago
Pavel Rojtberg
f0ef4b2246
python: sys.path[0] is reserved for the main script
6 years ago
Alexander Alekhin
ce6acd3ecd
python: bindings loader package
...
Configures and loads OpenCV bindings extension including 3rdparty dependencies
Based on running Python specify:
- configure PYTHON_PATH (via "sys.path")
- configure LD_LIBRARY_PATH / PATH
6 years ago