Skip to content

Commit

Permalink
Character vector changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sameagen-MW committed Dec 14, 2023
1 parent 4c8ee92 commit 3fdaf00
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/matlab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}

/**
Expand All @@ -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];

Expand Down

0 comments on commit 3fdaf00

Please sign in to comment.