Commits

Arun Mahapatra committed cbb4c22

Fix typo in PYTHONHOME variable check.

Comments (0)

Files changed (1)

VirtualEnvWrapper/Win.psm1

 # TODO: Handle both environment variables and variables in global scope
 $global:_OLD_VIRTUAL_PATH = $env:PATH
 $env:PATH = "$env:VIRTUAL_ENV/Scripts;" + $env:PATH
-if (test-path variable:PYTHONHOME) {
+if (test-path env:PYTHONHOME) {
     $global:_OLD_PYTHONHOME = $env:PYTHONHOME
     remove-item env:PYTHONHOME
 }