Skip to content

Commit

Permalink
Added python search path for Conda (openvinotoolkit#19929)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov authored Oct 3, 2023
1 parent 379ff62 commit 749ed9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bindings/python/src/openvino/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ def _add_openvino_libs_to_search_path() -> None:
# If you're using a custom installation of openvino,
# add the location of openvino dlls to your system PATH.
openvino_libs = []
# looking for the libs in the pip installation path.
if os.path.isdir(os.path.join(os.path.dirname(__file__), "libs")):
# looking for the libs in the pip installation path.
openvino_libs.append(os.path.join(os.path.dirname(__file__), "libs"))
elif os.path.isdir(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")):
# looking for the libs in the conda installation path
openvino_libs.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin"))
else:
# setupvars.bat script set all libs paths to OPENVINO_LIB_PATHS environment variable.
openvino_libs_installer = os.getenv("OPENVINO_LIB_PATHS")
Expand Down

0 comments on commit 749ed9d

Please sign in to comment.