Use absolute path when setting executables

This commit is contained in:
Xiaoge Su 2023-01-19 11:16:49 -08:00
parent 4baab48db6
commit 71a002c0e0
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ class _ExecutablePath:
path = overridden_path
if path is None:
path = shutil.which(self._executable)
else:
path = os.path.abspath(path)
if path is None or not os.path.exists(path):
raise FileNotFoundError(