Skip to content

Commit 0e4d45e

Browse files
committed
Move function call location
1 parent 6b3cf41 commit 0e4d45e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/matlab.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function generateScript(workspaceDir: string, command: string): Pro
3838
});
3939

4040
return {
41-
dir: script.pathToCharVec(temporaryDirectory),
41+
dir: temporaryDirectory,
4242
command: scriptName
4343
};
4444
}
@@ -57,7 +57,7 @@ export async function runCommand(hs: HelperScript, platform: string, architectur
5757
const rmcPath = getRunMATLABCommandScriptPath(platform, architecture);
5858
await fs.chmod(rmcPath, 0o777);
5959

60-
const rmcArg = `setenv('MW_ORIG_WORKING_FOLDER', cd('${hs.dir}'));${hs.command}`;
60+
const rmcArg = `setenv('MW_ORIG_WORKING_FOLDER', cd('${script.pathToCharVec(hs.dir)}'));${hs.command}`;
6161

6262
let execArgs = [rmcArg];
6363

0 commit comments

Comments
 (0)