Skip to content

Commit ee441ca

Browse files
get_pg_config2 is updated
1 parent 56ae1a8 commit ee441ca

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

testgres/utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,15 @@ def cache_pg_config_data(cmd):
185185
return _pg_config_data
186186

187187
# try specified pg_config path or PG_CONFIG
188+
if pg_config_path:
189+
return cache_pg_config_data(pg_config_path)
190+
188191
if isinstance(os_ops, RemoteOperations):
189-
pg_config = pg_config_path or os.environ.get("PG_CONFIG_REMOTE") or os.environ.get("PG_CONFIG")
192+
pg_config = os.environ.get("PG_CONFIG_REMOTE") or os.environ.get("PG_CONFIG")
190193
else:
191194
# try PG_CONFIG - get from local machine
192-
pg_config = pg_config_path or os.environ.get("PG_CONFIG")
195+
pg_config = os.environ.get("PG_CONFIG")
196+
193197
if pg_config:
194198
return cache_pg_config_data(pg_config)
195199

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