MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / _find_pg_binary

Method _find_pg_binary

asyncpg/cluster.py:591–599  ·  view source on GitHub ↗
(self, binary)

Source from the content-addressed store, hash-verified

589 return pg_config_path
590
591 def _find_pg_binary(self, binary):
592 bpath = platform_exe(os.path.join(self._pg_bin_dir, binary))
593
594 if not os.path.isfile(bpath):
595 raise ClusterError(
596 'could not find {} executable: '.format(binary) +
597 '{!r} does not exist or is not a file'.format(bpath))
598
599 return bpath
600
601 def _get_pg_version(self):
602 process = subprocess.run(

Callers 3

reset_walMethod · 0.95
_init_envMethod · 0.95
_init_envMethod · 0.80

Calls 2

platform_exeFunction · 0.85
ClusterErrorClass · 0.85

Tested by

no test coverage detected