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
61fda05b
Commit
61fda05b
authored
Jan 27, 2017
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Closes #29308: Merged fix from 3.6.
parents
f473fda0
dbb5686e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
Lib/venv/scripts/nt/Activate.ps1
Lib/venv/scripts/nt/Activate.ps1
+9
-7
No files found.
Lib/venv/scripts/nt/Activate.ps1
View file @
61fda05b
...
...
@@ -29,13 +29,15 @@ deactivate -nondestructive
$
env
:
VIRTUAL_ENV
=
"__VENV_DIR__"
# Set the prompt to include the env name
# Make sure _OLD_VIRTUAL_PROMPT is global
function
global
:
_OLD_VIRTUAL_PROMPT
{
""
}
copy-item
function:prompt
function:_OLD_VIRTUAL_PROMPT
function
global
:
prompt
{
Write-Host
-NoNewline
-ForegroundColor
Green
'__VENV_PROMPT__'
_OLD_VIRTUAL_PROMPT
if
(
!
$
env
:
VIRTUAL_ENV_DISABLE_PROMPT
)
{
# Set the prompt to include the env name
# Make sure _OLD_VIRTUAL_PROMPT is global
function
global
:
_OLD_VIRTUAL_PROMPT
{
""
}
copy-item
function:prompt
function:_OLD_VIRTUAL_PROMPT
function
global
:
prompt
{
Write-Host
-NoNewline
-ForegroundColor
Green
'__VENV_PROMPT__'
_OLD_VIRTUAL_PROMPT
}
}
# Clear PYTHONHOME
...
...
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