Updated path of the executable binary for the Python interpreter (#6494)
This commit is contained in:
parent
0dfe44e465
commit
c2e4e64079
@ -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}"
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user