Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bfc8f26e
Commit
bfc8f26e
authored
May 20, 2013
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #17743: Now use extended syntax of set command in .bat files.
parent
e254751a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
Lib/venv/scripts/nt/activate.bat
Lib/venv/scripts/nt/activate.bat
+14
-13
No files found.
Lib/venv/scripts/nt/activate.bat
View file @
bfc8f26e
@echo
off
set
VIRTUAL_ENV
=
__VENV_DIR__
set
"VIRTUAL_ENV=__VENV_DIR__"
if
not
defined
PROMPT
(
set
PROMPT
=
$P$G
set
"PROMPT=$P$G"
)
if
defined
_OLD_VIRTUAL_PROMPT
(
set
PROMPT
=
%_OLD_VIRTUAL_PROMPT%
set
"PROMPT=
%_OLD_VIRTUAL_PROMPT%
"
)
if
defined
_OLD_VIRTUAL_PYTHONHOME
(
set
PYTHONHOME
=
%_OLD_VIRTUAL_PYTHONHOME%
set
"PYTHONHOME=
%_OLD_VIRTUAL_PYTHONHOME%
"
)
set
_OLD_VIRTUAL_PROMPT
=
%PROMPT%
set
PROMPT
=
__VENV_NAME__
%PROMPT%
set
"_OLD_VIRTUAL_PROMPT=
%PROMPT%
"
set
"PROMPT=__VENV_NAME__
%PROMPT%
"
if
defined
PYTHONHOME
(
set
_OLD_VIRTUAL_PYTHONHOME
=
%PYTHONHOME%
set
PYTHONHOME
=
set
"_OLD_VIRTUAL_PYTHONHOME=
%PYTHONHOME%
"
set
PYTHONHOME
=
)
if
defined
_OLD_VIRTUAL_PATH
set
PATH
=
%_OLD_VIRTUAL_PATH%
;
goto
SKIPPATH
set
_OLD_VIRTUAL_PATH
=
%PATH%
if
defined
_OLD_VIRTUAL_PATH
(
set
"PATH=
%_OLD_VIRTUAL_PATH%
"
)
else
(
set
"_OLD_VIRTUAL_PATH=
%PATH%
"
)
:SKIPPATH
set
PATH
=
%VIRTUAL_ENV%
\__VENV_BIN_NAME__
;
%PATH%
set
"PATH=
%VIRTUAL_ENV%
\__VENV_BIN_NAME__;
%PATH%
"
:END
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment