Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2af76ae

Browse files
author
v.shepard
committed
Replace find executable on which
1 parent8979f83 commit2af76ae

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
fromcontextlibimportcontextmanager
1414
frompackaging.versionimportVersion
15-
fromdistutils.spawnimportfind_executable
15+
fromshutilimportwhich
1616
fromsiximportiteritems
1717

1818
from .configimporttestgres_config
@@ -138,7 +138,7 @@ def get_bin_path(filename):
138138
ifpg_bin:
139139
returnos.path.join(pg_bin,filename)
140140

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp