Skip to content
This repository was archived by the owner on Jun 3, 2020. It is now read-only.

Commit ad992a2

Browse files
author
Hugo Mercier
authored
Merge pull request #14 from m-kuhn/patch-1
Search for pg_ctl in $PATH
2 parents f9aab63 + 9ea8dda commit ad992a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pglite/pglite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def find_pg_ctl():
6666
'/usr/lib/postgresql/9.5/bin/pg_ctl',
6767
'/usr/lib/postgresql/9.4/bin/pg_ctl',
6868
'/usr/lib/postgresql/9.3/bin/pg_ctl']
69+
paths += [os.path.join(path, 'pg_ctl') for path in os.environ['PATH'].split(':')]
6970
elif sys.platform.startswith('freebsd'):
7071
paths = [sys.exec_prefix+'/bin/pg_ctl']
7172
else: # Windows

0 commit comments

Comments
 (0)