Skip to content

Commit

Permalink
fix pg_service.conf path on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdalang authored Feb 23, 2022
1 parent 141de7a commit ca20959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qgepqwat2ili/utils/various.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def read_pgservice(service_name):
elif os.environ.get("PGSYSCONFDIR"):
PG_CONFIG_PATH = os.path.join(os.environ.get("PGSYSCONFDIR"), "pg_service.conf")
else:
PG_CONFIG_PATH = " ~/.pg_service.conf"
PG_CONFIG_PATH = os.path.expanduser("~/.pg_service.conf")

config = configparser.ConfigParser()
if os.path.exists(PG_CONFIG_PATH):
Expand Down

0 comments on commit ca20959

Please sign in to comment.