aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-27 16:23:18 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-27 16:23:18 +0900
commite1198d7f03ca64021a5dd76a859df789408f650c (patch)
treea3157a4a9acabc2002b6242c41b17b6c61e530ed
parenta04d4470949f1291dcdd29f8160331e4f3c21e87 (diff)
downloadvim-lsp-settings-e1198d7f03ca64021a5dd76a859df789408f650c.tar.gz
vim-lsp-settings-e1198d7f03ca64021a5dd76a859df789408f650c.tar.bz2
vim-lsp-settings-e1198d7f03ca64021a5dd76a859df789408f650c.zip
Check python3.exe and python.exe
-rw-r--r--installer/pip_install.cmd10
1 files changed, 8 insertions, 2 deletions
diff --git a/installer/pip_install.cmd b/installer/pip_install.cmd
index 754679b..3fa4b5d 100644
--- a/installer/pip_install.cmd
+++ b/installer/pip_install.cmd
@@ -8,8 +8,14 @@ if exist "%server_dir%" rd /Q /S "%server_dir%"
md "%server_dir%"
cd /d "%server_dir%"
-python3 -m venv ./venv
-venv\bin\pip3 install %2
+where python3 2>NUL
+if %ERRORLEVEL% neq 0 (
+ python3 -m venv ./venv
+ venv\bin\pip3 install %2
+) else (
+ python -m venv ./venv
+ venv\bin\pip install %2
+)
echo @echo off ^