seems os.environ.get() not working well on windows (#59634)
Summary:
replace with os.getenv() instead
For some reason this was intermittently failing azure pipelines. I can't login to the pipeline itself for debugging but here are 2 examples: [successful](https://app.circleci.com/pipelines/github/pytorch/pytorch/332405/workflows/944609ad-5dcf-49da-984f-26c381d1f16c/jobs/13969059) vs [failed](https://app.circleci.com/pipelines/github/pytorch/pytorch/332518/workflows/21f8a5a6-3b95-432e-be42-ac98008c671b/jobs/13975637)
However given the fact that the other common_utils.py exposed constants using `os.getenv()` was working. I am making them consistent.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/59634
Test Plan: CI/master
Reviewed By: jbschlosser
Differential Revision: D28966412
Pulled By: walterddr
fbshipit-source-id: 7bcb9adf06df0acabd9574459eb6637c3e6a2947
Author
Rong Rong (AI Infra)