From 3fdaf005251ee4c0384a76869ced1b983939c62e Mon Sep 17 00:00:00 2001 From: sameagen Date: Thu, 14 Dec 2023 09:43:25 -0500 Subject: [PATCH] Character vector changes --- src/matlab.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/matlab.ts b/src/matlab.ts index deec096..3f7f7da 100644 --- a/src/matlab.ts +++ b/src/matlab.ts @@ -37,7 +37,10 @@ export async function generateScript(workspaceDir: string, command: string): Pro encoding: "utf8", }); - return { dir: temporaryDirectory, command: scriptName }; + return { + dir: script.pathToCharVec(temporaryDirectory), + command: scriptName + }; } /** @@ -54,7 +57,7 @@ export async function runCommand(hs: HelperScript, platform: string, architectur const rmcPath = getRunMATLABCommandScriptPath(platform, architecture); await fs.chmod(rmcPath, 0o777); - const rmcArg = `setenv("MW_ORIG_WORKING_FOLDER", cd('${hs.dir}'));${hs.command}`; + const rmcArg = `setenv('MW_ORIG_WORKING_FOLDER', cd('${hs.dir}'));${hs.command}`; let execArgs = [rmcArg];