Repository navigation
fix(aws-cdk): document PowerShell virtualenv activation in python templates - #2015
Open
reginaldalfret wants to merge 1 commit into
Open
reginaldalfret wants to merge 1 commit into
reginaldalfret wants to merge 1 commit into
Conversation
…hon templates Running a .bat file from PowerShell spawns a separate cmd process, meaning environment changes do not persist in the calling shell. Documenting the PowerShell activation script alongside the cmd script ensures users on PowerShell can activate the virtualenv properly. Fixes aws#1984 Signed-off-by: reginaldalfret <reginaldalfret@gmail.com>
reginaldalfret
temporarily deployed
to
automation
October 2, 2026 18:50 — with
GitHub Actions
Inactive
reginaldalfret
temporarily deployed
to
automation
October 2, 2026 18:50 — with
GitHub Actions
Inactive
reginaldalfret
requested a deployment
to
integ-approval
October 2, 2026 18:50 — with
GitHub Actions
Waiting
aws-cdk-automation
enabled auto-merge
October 2, 2026 18:50
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the Python
appandsample-appinit template READMEs (packages/aws-cdk/lib/init-templates/app/python/README.template.mdandpackages/aws-cdk/lib/init-templates/sample-app/python/README.template.md) to document the virtualenv activation command for PowerShell (.\.venv\Scripts\Activate.ps1) alongside the existingcmd.execommand (.venv\Scripts\activate.bat).Motivation
Closes #1984
On Windows, executing a
.batfile from PowerShell spawns a separatecmdsubshell, which terminates immediately without propagating the virtual environment variables to the parent PowerShell session. Because PowerShell is the default terminal on Windows 11 and inside VS Code, documenting the PowerShell activation script ensures Windows PowerShell users can properly activate the project's virtual environment.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.