mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 14:54:24 -04:00
Merge branch 'test-use-distro-pin-requests' of github.com:certbot/certbot into test-use-distro-pin-requests
This commit is contained in:
commit
48144d4fcb
1 changed files with 3 additions and 0 deletions
|
|
@ -214,6 +214,9 @@ def get_certbot_version(workspace):
|
|||
Find the version of the certbot available in PATH.
|
||||
:return str: the certbot version
|
||||
"""
|
||||
workspace = os.environ.get('WORKSPACE', os.path.join(os.getcwd(), '.certbot_test_workspace'))
|
||||
if not os.path.exists(workspace):
|
||||
os.mkdir(workspace)
|
||||
output = subprocess.check_output(['certbot', '--version'],
|
||||
universal_newlines=True, stderr=subprocess.STDOUT,
|
||||
cwd=workspace)
|
||||
|
|
|
|||
Loading…
Reference in a new issue