-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Activate OV environment from cond comp test_infer (#4244)
- Loading branch information
Andrey Somsikov
authored
Feb 11, 2021
1 parent
b7212b9
commit 8da7f22
Showing
4 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright (C) 2021 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
""" Common utilities for OpenVINO install package. | ||
""" | ||
import sys | ||
from pathlib import Path | ||
from proc_utils import get_env_from # pylint: disable=import-error | ||
|
||
|
||
def get_openvino_environment(install_prefix: Path): | ||
""" Get OpenVINO environment variables | ||
""" | ||
script = "setupvars.bat" if sys.platform == "win32" else "setupvars.sh" | ||
return get_env_from(install_prefix / "bin" / script) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters