diff --git a/src/virtualenv/activation/nushell/activate.nu b/src/virtualenv/activation/nushell/activate.nu index 6d1d27536..d31b1ae2d 100644 --- a/src/virtualenv/activation/nushell/activate.nu +++ b/src/virtualenv/activation/nushell/activate.nu @@ -8,15 +8,12 @@ let old-path = ($nu.path | str collect ($path-sep)) let venv-path = ([$virtual-env $bin] | path join) let new-path = ($nu.path | prepend $venv-path | str collect ($path-sep)) -let python_executable = ([$virtual-env $bin "python.exe"] | path join) - # environment variables that will be batched loaded to the virtual env let new-env = ([ [name, value]; [PATH $new-path] [_OLD_VIRTUAL_PATH $old-path] [VIRTUAL_ENV $virtual-env] - [PYTHONEXECUTABLE $python_executable] ]) load-env $new-env diff --git a/src/virtualenv/activation/nushell/deactivate.nu b/src/virtualenv/activation/nushell/deactivate.nu index 9c92040cc..1ce964eb2 100644 --- a/src/virtualenv/activation/nushell/deactivate.nu +++ b/src/virtualenv/activation/nushell/deactivate.nu @@ -6,7 +6,6 @@ let-env $path-name = $nu.env._OLD_VIRTUAL_PATH unlet-env VIRTUAL_ENV unlet-env _OLD_VIRTUAL_PATH unlet-env PROMPT_STRING -unlet-env PYTHONEXECUTABLE unalias pydoc unalias deactivate