File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/cursorless-engine/src/testUtil Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- import * as os from "node:os " ;
1+ import { isWindows } from "@cursorless/ node-common " ;
22import * as childProcess from "node:child_process" ;
3+ import * as os from "node:os" ;
34
45const MAX_OUTPUT_TO_EAT = 20 ;
56
@@ -16,7 +17,7 @@ export class TalonRepl {
1617 start ( ) : Promise < void > {
1718 return new Promise < void > ( ( resolve , reject ) => {
1819 const path = getReplPath ( ) ;
19- this . child = childProcess . spawn ( path ) ;
20+ this . child = childProcess . spawn ( path , { shell : true } ) ;
2021
2122 if ( ! this . child . stdin ) {
2223 reject ( "stdin is null" ) ;
@@ -86,7 +87,7 @@ export class TalonRepl {
8687}
8788
8889function getReplPath ( ) {
89- return os . platform ( ) === "win32"
90- ? `${ os . homedir ( ) } \\AppData\\Roaming\\talon\\venv\\3.11 \\Scripts\\repl.bat`
90+ return isWindows ( )
91+ ? `${ os . homedir ( ) } \\AppData\\Roaming\\talon\\venv\\3.13 \\Scripts\\repl.bat`
9192 : `${ os . homedir ( ) } /.talon/.venv/bin/repl` ;
9293}
You can’t perform that action at this time.
0 commit comments