Skip to content

Commit 3fdaf00

Browse files
committed
Character vector changes
1 parent 4c8ee92 commit 3fdaf00

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/matlab.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ export async function generateScript(workspaceDir: string, command: string): Pro
3737
encoding: "utf8",
3838
});
3939

40-
return { dir: temporaryDirectory, command: scriptName };
40+
return {
41+
dir: script.pathToCharVec(temporaryDirectory),
42+
command: scriptName
43+
};
4144
}
4245

4346
/**
@@ -54,7 +57,7 @@ export async function runCommand(hs: HelperScript, platform: string, architectur
5457
const rmcPath = getRunMATLABCommandScriptPath(platform, architecture);
5558
await fs.chmod(rmcPath, 0o777);
5659

57-
const rmcArg = `setenv("MW_ORIG_WORKING_FOLDER", cd('${hs.dir}'));${hs.command}`;
60+
const rmcArg = `setenv('MW_ORIG_WORKING_FOLDER', cd('${hs.dir}'));${hs.command}`;
5861

5962
let execArgs = [rmcArg];
6063

0 commit comments

Comments
 (0)