mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
ec32061f5f
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. |
||
---|---|---|
.. | ||
bindings | ||
package | ||
python2 | ||
python3 | ||
src2 | ||
test | ||
CMakeLists.txt | ||
common.cmake | ||
python_loader.cmake | ||
standalone.cmake |