Merge pull request #114 from saschanaz/powershell-fix

Fix powershell env directory
This commit is contained in:
juj
2018-04-12 21:45:06 +03:00
committed by GitHub

View File

@@ -31,9 +31,9 @@ $env:EMSDK_POWERSHELL = 1
# python is not able to set environment variables to the parent calling process, so # python is not able to set environment variables to the parent calling process, so
# therefore have it craft a .ps1 file, which we invoke after finishing python execution, # therefore have it craft a .ps1 file, which we invoke after finishing python execution,
# to set up the environment variables # to set up the environment variables
if (Test-Path "emsdk_set_env.ps1") { if (Test-Path ./emsdk_set_env.ps1) {
& emsdk_set_env.ps1 & ./emsdk_set_env.ps1
Remove-Item emsdk_set_env.ps1 Remove-Item ./emsdk_set_env.ps1
} }
Remove-Item Env:\EMSDK_POWERSHELL Remove-Item Env:\EMSDK_POWERSHELL