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 9ca0df0 commit b182924Copy full SHA for b182924
src/utils/pythonHelper.mts
@@ -46,9 +46,10 @@ export default async function findPython(): Promise<string | undefined> {
46
// check if it actually exists and is a supported version
47
if (existsSync(pythonPath)) {
48
try {
49
- const version = execSync(`&"${pythonPath}" -V`, {
+ const version = execSync(`${
50
+ process.env.ComSpec === "powershell.exe" ? "&" : ""
51
+ }"${pythonPath}" -V`, {
52
encoding: "utf-8",
- shell: process.platform === "win32" ? "powershell" : undefined,
53
timeout: 1000,
54
windowsHide: true,
55
maxBuffer: 1024,
0 commit comments