Skip to content

Commit 2e6b8e5

Browse files
committed
performed tests
1 parent 58cc05e commit 2e6b8e5

File tree

9 files changed

+627
-0
lines changed

9 files changed

+627
-0
lines changed

Scripts/Activate.ps1

Lines changed: 502 additions & 0 deletions
Large diffs are not rendered by default.

Scripts/activate

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# This file must be used with "source bin/activate" *from bash*
2+
# you cannot run it directly
3+
4+
deactivate () {
5+
# reset old environment variables
6+
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
7+
PATH="${_OLD_VIRTUAL_PATH:-}"
8+
export PATH
9+
unset _OLD_VIRTUAL_PATH
10+
fi
11+
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
12+
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
13+
export PYTHONHOME
14+
unset _OLD_VIRTUAL_PYTHONHOME
15+
fi
16+
17+
# This should detect bash and zsh, which have a hash command that must
18+
# be called to get it to forget past commands. Without forgetting
19+
# past commands the $PATH changes we made may not be respected
20+
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
21+
hash -r 2> /dev/null
22+
fi
23+
24+
if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
25+
PS1="${_OLD_VIRTUAL_PS1:-}"
26+
export PS1
27+
unset _OLD_VIRTUAL_PS1
28+
fi
29+
30+
unset VIRTUAL_ENV
31+
unset VIRTUAL_ENV_PROMPT
32+
if [ ! "${1:-}" = "nondestructive" ] ; then
33+
# Self destruct!
34+
unset -f deactivate
35+
fi
36+
}
37+
38+
# unset irrelevant variables
39+
deactivate nondestructive
40+
41+
VIRTUAL_ENV="C:\Users\Utkarsh Bhardwaj\Documents\GitHub\documentation"
42+
export VIRTUAL_ENV
43+
44+
_OLD_VIRTUAL_PATH="$PATH"
45+
PATH="$VIRTUAL_ENV/Scripts:$PATH"
46+
export PATH
47+
48+
# unset PYTHONHOME if set
49+
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
50+
# could use `if (set -u; : $PYTHONHOME) ;` in bash
51+
if [ -n "${PYTHONHOME:-}" ] ; then
52+
_OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
53+
unset PYTHONHOME
54+
fi
55+
56+
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
57+
_OLD_VIRTUAL_PS1="${PS1:-}"
58+
PS1="(documentation) ${PS1:-}"
59+
export PS1
60+
VIRTUAL_ENV_PROMPT="(documentation) "
61+
export VIRTUAL_ENV_PROMPT
62+
fi
63+
64+
# This should detect bash and zsh, which have a hash command that must
65+
# be called to get it to forget past commands. Without forgetting
66+
# past commands the $PATH changes we made may not be respected
67+
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
68+
hash -r 2> /dev/null
69+
fi

Scripts/activate.bat

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
@echo off
2+
3+
rem This file is UTF-8 encoded, so we need to update the current code page while executing it
4+
for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do (
5+
set _OLD_CODEPAGE=%%a
6+
)
7+
if defined _OLD_CODEPAGE (
8+
"%SystemRoot%\System32\chcp.com" 65001 > nul
9+
)
10+
11+
set VIRTUAL_ENV=C:\Users\Utkarsh Bhardwaj\Documents\GitHub\documentation
12+
13+
if not defined PROMPT set PROMPT=$P$G
14+
15+
if defined _OLD_VIRTUAL_PROMPT set PROMPT=%_OLD_VIRTUAL_PROMPT%
16+
if defined _OLD_VIRTUAL_PYTHONHOME set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%
17+
18+
set _OLD_VIRTUAL_PROMPT=%PROMPT%
19+
set PROMPT=(documentation) %PROMPT%
20+
21+
if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%
22+
set PYTHONHOME=
23+
24+
if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH%
25+
if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH%
26+
27+
set PATH=%VIRTUAL_ENV%\Scripts;%PATH%
28+
set VIRTUAL_ENV_PROMPT=(documentation)
29+
30+
:END
31+
if defined _OLD_CODEPAGE (
32+
"%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul
33+
set _OLD_CODEPAGE=
34+
)

Scripts/deactivate.bat

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
@echo off
2+
3+
if defined _OLD_VIRTUAL_PROMPT (
4+
set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
5+
)
6+
set _OLD_VIRTUAL_PROMPT=
7+
8+
if defined _OLD_VIRTUAL_PYTHONHOME (
9+
set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
10+
set _OLD_VIRTUAL_PYTHONHOME=
11+
)
12+
13+
if defined _OLD_VIRTUAL_PATH (
14+
set "PATH=%_OLD_VIRTUAL_PATH%"
15+
)
16+
17+
set _OLD_VIRTUAL_PATH=
18+
19+
set VIRTUAL_ENV=
20+
set VIRTUAL_ENV_PROMPT=
21+
22+
:END

Scripts/pip.exe

106 KB
Binary file not shown.

Scripts/pip3.10.exe

106 KB
Binary file not shown.

Scripts/pip3.exe

106 KB
Binary file not shown.

Scripts/python.exe

262 KB
Binary file not shown.

Scripts/pythonw.exe

251 KB
Binary file not shown.

0 commit comments

Comments
 (0)