Skip to content

Commit ef9af7d

Browse files
Merge pull request #1 from disguise-one/script-path-quotes
add quotes around script path
2 parents 5987210 + 8de07c8 commit ef9af7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vite-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const designerPythonLoader = (options: LoaderOptions = {}) => {
101101
const parseScriptPath = path.resolve(localDirname, 'python_support/parse.py');
102102

103103
const parsePython = (code: string) => {
104-
const parsedOutput = execSync(`python3 ${parseScriptPath}`, { input: code }).toString();
104+
const parsedOutput = execSync(`python3 "${parseScriptPath}"`, { input: code }).toString();
105105

106106
const parsedJson = JSON.parse(parsedOutput);
107107
if (parsedJson.error) {

0 commit comments

Comments
 (0)