We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
find_executable
1 parent c767114 commit 73bd7ecCopy full SHA for 73bd7ec
pytensor/configdefaults.py
@@ -3,13 +3,13 @@
3
import os
4
import platform
5
import re
6
+import shutil
7
import socket
8
import sys
9
import textwrap
10
from pathlib import Path
11
12
import numpy as np
-from setuptools._distutils.spawn import find_executable
13
14
import pytensor
15
from pytensor.configparser import (
@@ -349,7 +349,7 @@ def add_compile_configvars():
349
350
# Try to find the full compiler path from the name
351
if param != "":
352
- newp = find_executable(param)
+ newp = shutil.which(param)
353
if newp is not None:
354
param = newp
355
del newp
0 commit comments