Skip to content

Commit c89cebb

Browse files
committed
Use shutil.which to find executable
distutils is no longer part of the default python distribution as of python 3.12.
1 parent 35fb3b6 commit c89cebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/lsst/sconsUtils/scripts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import os.path
66
import re
77
import shlex
8+
import shutil
89
import warnings
9-
from distutils.spawn import find_executable
1010
from stat import ST_MODE
1111

1212
from SCons.Script import BUILD_TARGETS, Dir, File, Glob, SConscript
@@ -534,7 +534,7 @@ def doc(config="doxygen.conf.in", projectName=None, projectNumber=None, **kwargs
534534
result : ???
535535
???
536536
"""
537-
if not find_executable("doxygen"):
537+
if not shutil.which("doxygen"):
538538
state.log.warn("doxygen executable not found; skipping documentation build.")
539539
return []
540540
if projectName is None:

0 commit comments

Comments
 (0)