Merge branch 'bugfix/idfpy_msys_powershell' into 'master'
idf.py: Don't expect "_" env. variable to be available from PowerShell Closes #79 See merge request idf/esp-idf!5119
This commit is contained in:
commit
1be207adb4
1 changed files with 1 additions and 1 deletions
|
@ -1113,7 +1113,7 @@ if __name__ == "__main__":
|
|||
WINPTY_VAR = "WINPTY"
|
||||
WINPTY_EXE = "winpty"
|
||||
if ("MSYSTEM" in os.environ) and (
|
||||
not os.environ["_"].endswith(WINPTY_EXE) and WINPTY_VAR not in os.environ
|
||||
not os.environ.get("_", "").endswith(WINPTY_EXE) and WINPTY_VAR not in os.environ
|
||||
):
|
||||
os.environ[WINPTY_VAR] = "1" # the value is of no interest to us
|
||||
# idf.py calls itself with "winpty" and WINPTY global variable set
|
||||
|
|
Loading…
Reference in a new issue