Fixes build error with python-3.12:
Traceback (most recent call last):
File "support/mkbundle", line 48, in <module>
import distutils.spawn
ModuleNotFoundError: No module named 'distutils'
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
# PNGquant
pngquant_bin = '/usr/bin/pngquant'
if opts.pngquant:
- import distutils.spawn
+ from shutil import which
import subprocess
import time
- distutils.spawn.find_executable('pngquant')
+ which('pngquant')
# Build hierarchy
root = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '..'))