We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee2f854 commit f04ce11Copy full SHA for f04ce11
src/ansys/tools/installer/vscode.py
@@ -115,9 +115,9 @@ def _open_vscode(self):
115
"""Open VS code from path."""
116
# handle errors
117
path = self.vscode_window_path_config_edit.text().strip()
118
- if os.path.exists(path):
+ if os.path.exists(rf"{path}"):
119
error_msg = "echo Failed to launch vscode. Try reinstalling code by following this link https://code.visualstudio.com/download"
120
- self._parent.launch_cmd(f"code {path} && exit 0 || {error_msg}")
+ self._parent.launch_cmd(f'code "{path}" && exit 0 || {error_msg}')
121
122
self.user_confirmation_form.close()
123
self._parent.vscode_window.close()
0 commit comments