Skip to content

Commit

Permalink
Set environment variables TEMP and TMPDIR used by @cap-js-community/o…
Browse files Browse the repository at this point in the history
…data-v2-adapter to cache models (#221)

Fix #215
  • Loading branch information
vl-leon authored Jul 24, 2024
1 parent 9dc684c commit f519ec9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/startProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ async function startProcess(params={}) {
if(isUnixOS) {
options.env.HOME=params.workingDirectory;
options.env.TMP=params.workingDirectory;
options.env.TEMP=params.workingDirectory;
options.env.TMPDIR=params.workingDirectory;
} else
options.env.USERPROFILE=params.workingDirectory;
let libInfo = {};
Expand Down

0 comments on commit f519ec9

Please sign in to comment.