Skip to content

Commit 2af76ae

Browse files
author
v.shepard
committed
Replace find executable on which
1 parent 8979f83 commit 2af76ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testgres/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from contextlib import contextmanager
1414
from packaging.version import Version
15-
from distutils.spawn import find_executable
15+
from shutil import which
1616
from six import iteritems
1717

1818
from .config import testgres_config
@@ -138,7 +138,7 @@ def get_bin_path(filename):
138138
if pg_bin:
139139
return os.path.join(pg_bin, filename)
140140

141-
pg_config_path = find_executable('pg_config')
141+
pg_config_path = which('pg_config')
142142
if pg_config_path:
143143
bindir = get_pg_config(pg_config_path)["BINDIR"]
144144
return os.path.join(bindir, filename)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy