Skip to content

Commit 03bb842

Browse files
authored
Fix failing version detection when path contains spaces (#131)
1 parent cfdf2b0 commit 03bb842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/manimVersion.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { exec } from "child_process";
22

3-
import { Window, Logger } from "./logger";
43
import * as vscode from "vscode";
4+
import { Logger, Window } from "./logger";
55

66
/**
77
* Manim version that the user has installed without the 'v' prefix,
@@ -159,7 +159,7 @@ export async function determineManimVersion(pythonBinary: string | undefined) {
159159
}, 3000);
160160
});
161161

162-
const versionCommand = `${pythonBinary} -c \"from importlib.metadata import version; `
162+
const versionCommand = `"${pythonBinary}" -c \"from importlib.metadata import version; `
163163
+ " print(version('manimgl'))\"";
164164

165165
try {

0 commit comments

Comments
 (0)