可运行
This commit is contained in:
@@ -1,49 +0,0 @@
|
||||
function global:deactivate ([switch]$NonDestructive) {
|
||||
|
||||
# Revert to original values
|
||||
|
||||
if (Test-Path function:_OLD_VIRTUAL_PROMPT) {
|
||||
|
||||
copy-item function:_OLD_VIRTUAL_PROMPT function:prompt
|
||||
|
||||
remove-item function:_OLD_VIRTUAL_PROMPT
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (Test-Path env:_OLD_VIRTUAL_PYTHONHOME) {
|
||||
|
||||
copy-item env:_OLD_VIRTUAL_PYTHONHOME env:PYTHONHOME
|
||||
|
||||
remove-item env:_OLD_VIRTUAL_PYTHONHOME
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (Test-Path env:_OLD_VIRTUAL_PATH) {
|
||||
|
||||
copy-item env:_OLD_VIRTUAL_PATH env:PATH
|
||||
|
||||
remove-item env:_OLD_VIRTUAL_PATH
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (Test-Path env:VIRTUAL_ENV) {
|
||||
|
||||
remove-item env:VIRTUAL_ENV
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!$NonDestructive) {
|
||||
|
||||
# Self destruct!
|
||||
|
||||
remove-item function:deactivate
|
||||
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,32 +0,0 @@
|
||||
@echo off
|
||||
|
||||
set "VIRTUAL_ENV=D:\order\venv"
|
||||
|
||||
|
||||
|
||||
if not defined PROMPT (
|
||||
|
||||
set "PROMPT=$P$G"
|
||||
|
||||
)
|
||||
|
||||
|
||||
|
||||
if defined _OLD_VIRTUAL_PROMPT (
|
||||
|
||||
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
|
||||
|
||||
)
|
||||
|
||||
|
||||
|
||||
if defined _OLD_VIRTUAL_PYTHONHOME (
|
||||
|
||||
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
|
||||
|
||||
)
|
||||
|
||||
|
||||
|
||||
set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
|
||||
|
||||
Binary file not shown.
@@ -1,21 +0,0 @@
|
||||
@echo off
|
||||
|
||||
|
||||
|
||||
if defined _OLD_VIRTUAL_PROMPT (
|
||||
|
||||
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
|
||||
|
||||
)
|
||||
|
||||
set _OLD_VIRTUAL_PROMPT=
|
||||
|
||||
|
||||
|
||||
if defined _OLD_VIRTUAL_PYTHONHOME (
|
||||
|
||||
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
|
||||
|
||||
set _OLD_VIRTUAL_PYTHONHOME=
|
||||
|
||||
)
|
||||
@@ -1,12 +0,0 @@
|
||||
#!D:\order\venv\Scripts\python.exe
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.5'
|
||||
__requires__ = 'setuptools==40.8.0'
|
||||
import re
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(
|
||||
load_entry_point('setuptools==40.8.0', 'console_scripts', 'easy_install-3.5')()
|
||||
)
|
||||
Binary file not shown.
@@ -1,12 +0,0 @@
|
||||
#!D:\order\venv\Scripts\python.exe
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
|
||||
__requires__ = 'setuptools==40.8.0'
|
||||
import re
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(
|
||||
load_entry_point('setuptools==40.8.0', 'console_scripts', 'easy_install')()
|
||||
)
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,12 +0,0 @@
|
||||
#!D:\order\venv\Scripts\python.exe
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
|
||||
__requires__ = 'pip==19.0.3'
|
||||
import re
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(
|
||||
load_entry_point('pip==19.0.3', 'console_scripts', 'pip')()
|
||||
)
|
||||
Binary file not shown.
@@ -1,12 +0,0 @@
|
||||
#!D:\order\venv\Scripts\python.exe
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
|
||||
__requires__ = 'pip==19.0.3'
|
||||
import re
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(
|
||||
load_entry_point('pip==19.0.3', 'console_scripts', 'pip3')()
|
||||
)
|
||||
@@ -1,12 +0,0 @@
|
||||
#!D:\order\venv\Scripts\python.exe
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.5'
|
||||
__requires__ = 'pip==19.0.3'
|
||||
import re
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(
|
||||
load_entry_point('pip==19.0.3', 'console_scripts', 'pip3.5')()
|
||||
)
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user