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

Commit261931f

Browse files
committed
search binary again in windows build
1 parentae55833 commit261931f

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

‎testgres/utils.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ def execute_utility(args, logfile=None):
120120
returnout
121121

122122

123-
defget_bin_path(filename):
123+
def_choose_bin_path(filename):
124124
"""
125-
Return absolute path to an executable using PG_BIN or PG_CONFIG.
126-
This function does nothing if 'filename' is already absolute.
125+
Worker function for get_bin_path.
127126
"""
128127

129128
# check if it's already absolute
@@ -148,6 +147,19 @@ def get_bin_path(filename):
148147

149148
returnfilename
150149

150+
defget_bin_path(filename):
151+
"""
152+
Return absolute path to an executable using PG_BIN or PG_CONFIG.
153+
This function does nothing if 'filename' is already absolute.
154+
"""
155+
156+
filename=_choose_bin_path(filename)
157+
158+
# Windows should find executable again for suffixes
159+
ifsys.platform=='win32':
160+
returnfind_executable(filename)
161+
returnfilename
162+
151163

152164
defget_pg_config(pg_config_path=None):
153165
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp