Skip to content

Commit 61ceaf9

Browse files
committed
use get() instead of brackets for env in get_pg_config()
1 parent 1f961e2 commit 61ceaf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testgres/testgres.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ def get_pg_config():
10371037
global pg_config_data
10381038

10391039
if not pg_config_data:
1040-
pg_config_cmd = os.environ["PG_CONFIG"] or "pg_config"
1040+
pg_config_cmd = os.environ.get("PG_CONFIG") or "pg_config"
10411041

10421042
out = six.StringIO(subprocess.check_output([pg_config_cmd],
10431043
universal_newlines=True))

0 commit comments

Comments
 (0)