Skip to content

Commit 0b9d43c

Browse files
authored
Merge pull request visualpython#41 from visualpython/devops
Devops
2 parents a7a0414 + 077089e commit 0b9d43c

File tree

2 files changed

+18
-24
lines changed

2 files changed

+18
-24
lines changed

bin/visualpy

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,21 @@
44
# Filename : visualpy
55
# function : control visualpython for Mac/Linux
66
# Creator : BlackLogic - LJ
7-
# version : 2.2
7+
# version : 2.1
88
# License :
99
# Date : 2020 07.27
10-
# Mdate : 2021 06.04
10+
# Mdate : 2020 12.29
1111
#============================================================================
1212

13-
v_pip=pip
14-
which pip3 > /dev/null 2>&1 && v_pip=pip3
15-
16-
v_path1=`${v_pip} show visualpython | grep Location | awk -F': ' '{print $2}'`
13+
v_path1=`pip show visualpython | grep Location | awk -F': ' '{print $2}'`
1714
v_prod='visualpython'
1815
v_str1='jupyter nbextension'
1916
v_str2='visualpython/src/main'
20-
v_unst='${v_pip} uninstall '${v_prod}
21-
v_upgr='${v_pip} install '${v_prod}' --upgrade'
22-
#v_srch='${v_pip} search '${v_prod}
23-
v_str3='${v_pip} list -o '
24-
v_str4='${v_pip} show '${v_prod}
17+
v_unst='pip uninstall '${v_prod}
18+
v_upgr='pip install '${v_prod}' --upgrade'
19+
#v_srch='pip search '${v_prod}
20+
v_str3='pip list -o '
21+
v_str4='pip show '${v_prod}
2522
#v_list=`${v_str3} | grep -i ${v_prod}`
2623
v_curt=`${v_str4} | grep 'Version' | cut -d ' ' -f 2`
2724
v_option=$1
@@ -297,7 +294,7 @@ f_prt_extensiondir() {
297294
echo "jupyter contrib nbextension install --user"
298295
f_prt_line2
299296
echo "for pip"
300-
echo "${v_pip} install -e jupyter_contrib_nbextensions"
297+
echo "pip install -e jupyter_contrib_nbextensions"
301298
echo "jupyter contrib nbextension install --user"
302299
f_prt_line1
303300
}
@@ -325,4 +322,4 @@ exit
325322

326323
#============================================================================
327324
#End of File
328-
#============================================================================
325+
#============================================================================

bin/visualpy.bat

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,28 @@ rem #==========================================================================
44
rem # Filename : visualpy.bat
55
rem # function : control Visual Python for windows
66
rem # Creator : BlackLogic - LJ
7-
rem # version : 2.2
7+
rem # version : 2.1
88
rem # License : GPLv3
99
rem # Date : 2020 07.30
10-
rem # MDate : 2021 06.04
10+
rem # MDate : 2020 12.29
1111
rem #==========================================================================
1212

1313
rem ## setting variables
1414

15-
set v_pip=pip
16-
where pip3 > /dev/null 2>&1 && set v_pip=pip3
17-
1815
set v_prod=visualpython
1916
(echo "%v_prod%" & echo.) | findstr /O . | more +1 | (set /P RESULT= & call exit /B %%RESULT%%)
2017
set /A v_prd_length=%ERRORLEVEL%-5
2118
set v_option=%1
22-
for /f "delims=, tokens=1*" %%i in ('%v_pip% show %v_prod% 2^>^&1 ^| find "Location"') do (
19+
for /f "delims=, tokens=1*" %%i in ('pip show %v_prod% 2^>^&1 ^| find "Location"') do (
2320
set v_1=%%i)
2421
set v_path1=%v_1:~10%
2522
set v_str1=jupyter nbextension
2623
set v_str2=%v_prod%/src/main
27-
set v_srch=%v_pip% search %v_prod%
28-
set v_upgr=%v_pip% install %v_prod% --upgrade
29-
set v_unst=%v_pip% uninstall %v_prod%
30-
set v_ckup=%v_pip% list -o
31-
set v_show=%v_pip% show %v_prod%
24+
set v_srch=pip search %v_prod%
25+
set v_upgr=pip install %v_prod% --upgrade
26+
set v_unst=pip uninstall %v_prod%
27+
set v_ckup=pip list -o
28+
set v_show=pip show %v_prod%
3229

3330
rem check env & setting path2
3431
where /q conda-env

0 commit comments

Comments
 (0)