mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Using the proper python syntax to fetch the default binary path for
different servers types.
This commit is contained in:
committed by
Ashesh Vashi
parent
6b727c43b9
commit
b1ad89fb4a
@@ -54,10 +54,7 @@ class ServerType(object):
|
||||
|
||||
for key in cls.registry:
|
||||
st = cls.registry[key]
|
||||
default_path = (
|
||||
config.DEFAULT_BINARY_PATHS[st.stype] if st.stype in
|
||||
config.DEFAULT_BINARY_PATHS else ""
|
||||
) or ""
|
||||
default_path = config.DEFAULT_BINARY_PATHS.get(st.stype, "")
|
||||
|
||||
st.utility_path = paths.register(
|
||||
'bin_paths', st.stype + '_bin_dir',
|
||||
|
||||
Reference in New Issue
Block a user