diff --git a/src/executors/ReplExecutor.ts b/src/executors/ReplExecutor.ts index 015180db..51f72c0e 100644 --- a/src/executors/ReplExecutor.ts +++ b/src/executors/ReplExecutor.ts @@ -24,6 +24,9 @@ export default abstract class ReplExecutor extends AsyncExecutor { path = "wsl"; } + // Replace %USERNAME% with actual username + path = path.replace("%USERNAME%", process.env.USERNAME); + // Spawns a new REPL that is used to execute code. // {env: process.env} is used to ensure that the environment variables are passed to the REPL. this.process = spawn(path, args, {env: process.env});