Updated path of the executable binary for the Python interpreter (#6494)

This commit is contained in:
Ilya Sharikov 2021-07-02 10:53:46 +03:00 committed by GitHub
parent 0dfe44e465
commit c2e4e64079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,10 +62,8 @@ def write_session_info(path: Path = Path(getsourcefile(lambda: 0)).parent / SESS
def run_infer(model, out_file, install_dir):
""" Function running inference
"""
sys_executable = os.path.join(sys.prefix, 'python.exe') if sys.platform == "win32" \
else os.path.join(sys.prefix, 'bin', 'python')
return_code, output = cmd_exec(
[sys_executable,
[sys.executable,
infer_tool,
"-d=CPU", f"-m={model}", f"-r={out_file}"
],