MCPcopy Create free account
hub / github.com/apache/httpd / get_apxs_var

Method get_apxs_var

test/pyhttpd/env.py:550–554  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

548 return p.stderr == ""
549
550 def get_apxs_var(self, name: str) -> str:
551 p = subprocess.run([self._apxs, "-q", name], capture_output=True, text=True)
552 if p.returncode != 0:
553 return ""
554 return p.stdout.strip()
555
556 def get_httpd_version(self) -> str:
557 return self.get_apxs_var("HTTPD_VERSION")

Callers 2

__init__Method · 0.95
get_httpd_versionMethod · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected