[CPP/SAMPLES] Samples location independant on script execution directory (#13251)
This commit is contained in:
@@ -14,7 +14,7 @@ usage() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
samples_type=$(basename "$( dirname "${BASH_SOURCE[0]-$0}" )" )
|
||||
samples_type="$(basename "$(dirname "$(realpath "${BASH_SOURCE[0]}")")")"
|
||||
build_dir="$HOME/openvino_${samples_type}_samples_build"
|
||||
sample_install_dir=""
|
||||
|
||||
@@ -52,8 +52,7 @@ error() {
|
||||
}
|
||||
trap 'error ${LINENO}' ERR
|
||||
|
||||
SAMPLES_PATH="$( cd "$( dirname "${BASH_SOURCE[0]-$0}" )" && pwd )"
|
||||
|
||||
SAMPLES_PATH="$( cd "$( dirname "$(realpath "${BASH_SOURCE[0]}")" )" && pwd )"
|
||||
printf "\nSetting environment variables for building samples...\n"
|
||||
|
||||
if [ -z "$INTEL_OPENVINO_DIR" ]; then
|
||||
|
||||
Reference in New Issue
Block a user