From 682c2aa3bba94e29b4154ecb2dbb00dbb5988c23 Mon Sep 17 00:00:00 2001 From: Satya Jyoti Das Date: Mon, 14 Nov 2022 18:26:46 +0530 Subject: [PATCH] Changed spawn.find_executable to shutil.which() The change was done to make it compatible for newer versions of python since ' distutil ' package is deprecated and slated for removal in python 3.12 --- tools/worlddump.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/worlddump.py b/tools/worlddump.py index e2921737db..aadd33b634 100755 --- a/tools/worlddump.py +++ b/tools/worlddump.py @@ -19,7 +19,6 @@ import argparse import datetime -from distutils import spawn import fnmatch import io import os @@ -76,7 +75,7 @@ def _dump_cmd(cmd): def _find_cmd(cmd): - if not spawn.find_executable(cmd): + if not shutil.which(cmd): print("*** %s not found: skipping" % cmd) return False return True