Update windows paths for new certbot location

This commit is contained in:
Erica Portnoy 2019-11-25 16:30:42 -08:00
parent 5d90544c82
commit 49044c9a3a
2 changed files with 3 additions and 2 deletions

View file

@ -4,7 +4,7 @@ jobs:
vmImage: vs2017-win2016
steps:
- bash: |
CERTBOT_VERSION="$(python -c "import certbot; print(certbot.__version__)")"
CERTBOT_VERSION="$(cd certbot && python -c "import certbot; print(certbot.__version__)" && cd ~-)"
"${BUILD_REPOSITORY_LOCALPATH}\tools\extract_changelog.py" "${CERTBOT_VERSION}" >> "${BUILD_ARTIFACTSTAGINGDIRECTORY}/release_notes.md"
displayName: Prepare changelog
- task: PublishPipelineArtifact@1

View file

@ -119,8 +119,9 @@ imp.load_dynamic('pythoncom', pcom)
installer_cfg_path = os.path.join(build_path, 'installer.cfg')
certbot_pkg_path = os.path.join(repo_path, 'certbot')
certbot_version = subprocess.check_output([sys.executable, '-c', 'import certbot; print(certbot.__version__)'],
universal_newlines=True, cwd=repo_path).strip()
universal_newlines=True, cwd=certbot_pkg_path).strip()
with open(installer_cfg_path, 'w') as file_h:
file_h.write('''\