Skip to content

process object used in browser/terminalTaskSystem #76351

@Tyriar

Description

@Tyriar

cwd = process.cwd();
}
const dir = path.dirname(command);
if (dir !== '.') {
// We have a directory and the directory is relative (see above). Make the path absolute
// to the current working directory.
return path.join(cwd, command);
}
if (paths === undefined && Types.isString(process.env.PATH)) {
paths = process.env.PATH.split(path.delimiter);

I'm planning on copying this function to the terminal contrib for #76349, so maybe tasks can use that?

Metadata

Metadata

Assignees

Labels

debtCode quality issuestasksTask system issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions