Add double quote wrap in activate_python_virtual_environment (#7787)
Added double quote wrap in activate_python_virtual_environment to handle spaces in path. Would fail to find venv activate script when spaces exist. Release Notes: - Fixed venv_detection activation not finding directory if space is in the path  - With changes 
This commit is contained in:
parent
ac59b9b02f
commit
54f82eb166
1 changed files with 3 additions and 0 deletions
|
@ -124,7 +124,10 @@ impl Project {
|
|||
// Paths are not strings so we need to jump through some hoops to format the command without `format!`
|
||||
let mut command = Vec::from(activate_command.as_bytes());
|
||||
command.push(b' ');
|
||||
// Wrapping path in double quotes to catch spaces in folder name
|
||||
command.extend_from_slice(b"\"");
|
||||
command.extend_from_slice(activate_script.as_os_str().as_encoded_bytes());
|
||||
command.extend_from_slice(b"\"");
|
||||
command.push(b'\n');
|
||||
|
||||
terminal_handle.update(cx, |this, _| this.input_bytes(command));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue