Skip to content

Commit 7f7855b

Browse files
committed
remove IsValidPath reference
1 parent 8b06e08 commit 7f7855b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/stub_launcher.cc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,6 @@ StubLauncher::Launch()
363363
python_backend_stub = model_python_backend_stub;
364364
}
365365

366-
// Validate the stub executable path
367-
if (!IsValidPath(python_backend_stub)) {
368-
return TRITONSERVER_ErrorNew(
369-
TRITONSERVER_ERROR_INVALID_ARG, "Invalid python backend stub path");
370-
}
371-
372366
if (!IsExecutableFile(python_backend_stub)) {
373367
// Give the execute permission for the triton_python_backend_stub to the
374368
// owner.
@@ -394,12 +388,6 @@ StubLauncher::Launch()
394388
ipc_control_->uses_env = false;
395389

396390
if (python_execution_env_ != "") {
397-
// Validate Python environment paths
398-
if (!IsValidPath(path_to_activate_) || !IsValidPath(path_to_libpython_)) {
399-
return TRITONSERVER_ErrorNew(
400-
TRITONSERVER_ERROR_INVALID_ARG, "Invalid Python environment paths");
401-
}
402-
403391
ipc_control_->uses_env = true;
404392

405393
// Parse environment variables from activation script

0 commit comments

Comments
 (0)