File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -203,13 +203,16 @@ def check_virtualenv_arg():
203
203
204
204
venv_path = os .path .join (CUR_PATH , venv_tmp_dir )
205
205
206
- if python_version == 2 :
207
- create_venv_command = "virtualenv -p python " + venv_tmp_dir
206
+ if check_os () == "Windows" :
207
+ create_venv_command = "python -m venv " + venv_tmp_dir
208
208
else :
209
- create_venv_command = "virtualenv -p python3 " + venv_tmp_dir
209
+ if python_version == 2 :
210
+ create_venv_command = "virtualenv -p python " + venv_tmp_dir
211
+ else :
212
+ create_venv_command = "virtualenv -p python3 " + venv_tmp_dir
210
213
211
214
if check_os () == "Windows" :
212
- activate_command = ". \\ " + os .path .join (venv_tmp_dir , "Scripts" , "activate" )
215
+ activate_command = os .path .join (venv_tmp_dir , "Scripts" , "activate.bat " )
213
216
else :
214
217
activate_command = ". " + os .path .join (venv_path , "bin" , "activate" )
215
218
You can’t perform that action at this time.
0 commit comments