Skip to content

Commit 6dc0721

Browse files
authored
swap distutils for shutil (#137)
1 parent cdd7fda commit 6dc0721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/h5bench.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import uuid
88
import shlex
99
import errno
10-
import distutils.spawn
10+
import shutil
1111
import argparse
1212
import collections
1313
import subprocess
@@ -464,7 +464,7 @@ def run_pattern(self, id, operation, setup, vol):
464464

465465
def is_available(self, executable):
466466
"""Check if binary is available."""
467-
return distutils.spawn.find_executable(
467+
return shutil.which(
468468
executable,
469469
path=os.environ['PATH'] + ':.'
470470
)

0 commit comments

Comments
 (0)