We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8979f83 commit 2af76aeCopy full SHA for 2af76ae
testgres/utils.py
@@ -12,7 +12,7 @@
12
13
from contextlib import contextmanager
14
from packaging.version import Version
15
-from distutils.spawn import find_executable
+from shutil import which
16
from six import iteritems
17
18
from .config import testgres_config
@@ -138,7 +138,7 @@ def get_bin_path(filename):
138
if pg_bin:
139
return os.path.join(pg_bin, filename)
140
141
- pg_config_path = find_executable('pg_config')
+ pg_config_path = which('pg_config')
142
if pg_config_path:
143
bindir = get_pg_config(pg_config_path)["BINDIR"]
144
return os.path.join(bindir, filename)
0 commit comments