MCPcopy
hub / github.com/certbot/certbot / certbot_version

Function certbot_version

letstest/scripts/version.py:15–23  ·  view source on GitHub ↗

Return the version number stamped in certbot/__init__.py.

(letstest_scripts_dir)

Source from the content-addressed store, hash-verified

13
14
15def certbot_version(letstest_scripts_dir):
16 """Return the version number stamped in certbot/__init__.py."""
17 return re.search('''^__version__ = ['"](.+)['"].*''',
18 file_contents(join(dirname(dirname(letstest_scripts_dir)),
19 'certbot',
20 'src',
21 'certbot',
22 '__init__.py')),
23 re.M).group(1)
24
25
26def file_contents(path):

Callers 1

version.pyFile · 0.85

Calls 2

file_contentsFunction · 0.85
joinFunction · 0.85

Tested by

no test coverage detected