Skip to content

Adjust python exe for consistence cross subprocess#477

Merged
AllyW merged 3 commits intoAzure:devfrom
AllyW:fix-python-exe
Sep 19, 2024
Merged

Adjust python exe for consistence cross subprocess#477
AllyW merged 3 commits intoAzure:devfrom
AllyW:fix-python-exe

Conversation

@AllyW
Copy link
Copy Markdown
Contributor

@AllyW AllyW commented Sep 19, 2024

python in subprocess loss its virtual env's site-packages under windows platform.
As noted in discussions and related peps below, use sys.executable to make inner python in subprocess consistent with the caller python exe.

https://stackoverflow.com/questions/8052926/running-subprocess-within-different-virtualenv-with-python
pypa/virtualenv#1080 (comment)
https://peps.python.org/pep-0394/#for-python-script-publishers

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @AllyW,
Please write the description of change into HISTORY.rst.
If you want to release a new azdev version, please update the VERSION in init.py as well.

@AllyW AllyW changed the title Adjust python exe for windows Adjust python exe for consistence cross subprocess Sep 19, 2024
@AllyW AllyW merged commit f9d9e2f into Azure:dev Sep 19, 2024
@AllyW
Copy link
Copy Markdown
Contributor Author

AllyW commented Sep 20, 2024

related issue: #476

RenSilvaAU pushed a commit to RenSilvaAU/azure-cli-dev-tools that referenced this pull request Aug 7, 2025
fix: if properties then not any type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants