Skip to content

Making activate.bat relocatable. #479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -2016,10 +2016,10 @@ def convert(s):

##file activate.bat
ACTIVATE_BAT = convert("""
eJx9UdEKgjAUfW6wfxjiIH+hEDKUFHSKLCMI7kNOEkIf9P9pTJ3OLJ/03HPPPed4Es9XS9qqwqgT
PbGKKOdXL4aAFS7A4gvAwgijuiKlqOpGlATS2NeMLE+TjJM9RkQ+SmqAXLrBo1LLIeLdiWlD6jZt
r7VNubWkndkXaxg5GO3UaOOKS6drO3luDDiO5my3iA0YAKGzPRV1ack8cOdhysI0CYzIPzjSiH5X
0QcvC8Lfaj0emsVKYF2rhL5L3fCkVjV76kShi59NHwDniAHzkgDgqBcwOgTMx+gDQQqXCw==
eJx9kcELgyAUxu+C/4NEwrrtvBEsKFZQGuEaO3lYyoJRgzrvb59YibY2T/K9n9977/Mk7o8e9VJC
MIgReXVWsUuU84TUIX43r70HAQStRI2QbScaxGke84UqK1qUDO0gQOpog0kK8QaHlVeAxHMQywvl
2/Wj8Xbt1pZ+6Z+9qRRYDTcahdhqOC82V7hBrxmZNM6Rxetl7aFc/xtLKUlpkThL/2DUHOZuzWIB
f8ONWOpGq4R1sEr6jnVjJv3U0EsmWrW+HB8NA8EhITEEH4PKkAQ=
""")

##file deactivate.bat
Expand Down
6 changes: 3 additions & 3 deletions virtualenv_embedded/activate.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@echo off
set "VIRTUAL_ENV=__VIRTUAL_ENV__"
set "VIRTUAL_ENV=%~dp0"

if defined _OLD_VIRTUAL_PROMPT (
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
) else (
if not defined PROMPT (
set "PROMPT=$P$G"
)
set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
)
set "PROMPT=__VIRTUAL_WINPROMPT__ %PROMPT%"

Expand All @@ -21,6 +21,6 @@ if defined _OLD_VIRTUAL_PATH (
) else (
set "_OLD_VIRTUAL_PATH=%PATH%"
)
set "PATH=%VIRTUAL_ENV%\__BIN_NAME__;%PATH%"
set "PATH=%VIRTUAL_ENV%;%PATH%"

:END