@ECHO OFF SETLOCAL EnableDelayedExpansion SET "SCRIPT_DIR=%~dp0" IF NOT DEFINED OPENCV_QUIET ( ECHO Setting vars for OpenCV @OPENCV_VERSION@ ) SET "PATH=!SCRIPT_DIR!\@OPENCV_LIB_RUNTIME_DIR_RELATIVE_CMAKECONFIG@;%PATH%" IF NOT DEFINED OPENCV_SKIP_PYTHON ( SET "PYTHONPATH_OPENCV=!SCRIPT_DIR!\@OPENCV_PYTHON_DIR_RELATIVE_CMAKECONFIG@" IF NOT DEFINED OPENCV_QUIET ( ECHO Append PYTHONPATH: !PYTHONPATH_OPENCV! ) SET "PYTHONPATH=!PYTHONPATH_OPENCV!;%PYTHONPATH%" ) IF NOT [%1] == [] ( %* EXIT /B !errorlevel! )