Skip to content

Commit

Permalink
autogen/paths.py: Replace use of distutils (removed in Python 3.12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Oct 9, 2023
1 parent f649956 commit 932da8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions autogen/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
from __future__ import absolute_import, unicode_literals

import os
import shutil

from glob import glob
from distutils.spawn import find_executable


# find_executable() returns None if nothing was found
gppath = find_executable("gp")
gppath = shutil.which("gp")

if gppath is None:
# This almost certainly won't work, but we need to put something here
prefix = "."
Expand Down

0 comments on commit 932da8b

Please sign in to comment.