Skip to content

Commit 5c734f6

Browse files
author
Matthias Koeppe
committed
autogen/paths.py: Replace use of distutils (removed in Python 3.12)
1 parent 566eed6 commit 5c734f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

autogen/paths.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
from __future__ import absolute_import, unicode_literals
1616

1717
import os
18+
import shutils
19+
1820
from glob import glob
19-
from distutils.spawn import find_executable
2021

2122

22-
# find_executable() returns None if nothing was found
23-
gppath = find_executable("gp")
23+
gppath = shutil.which("gp")
24+
2425
if gppath is None:
2526
# This almost certainly won't work, but we need to put something here
2627
prefix = "."

0 commit comments

Comments
 (0)