|
a |
|
b/Training/myenv/Scripts/activate.bat |
|
|
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=F:\Leukemia_detection\Training\myenv |
|
|
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=(myenv) %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=(myenv) |
|
|
29 |
|
|
|
30 |
:END |
|
|
31 |
if defined _OLD_CODEPAGE ( |
|
|
32 |
"%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul |
|
|
33 |
set _OLD_CODEPAGE= |
|
|
34 |
) |