File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ describe('RemoteExecution', () => {
2424
2525 expect ( motionBuilderSocket . isOpen ( ) ) . toBe ( true ) ;
2626
27- expect ( motionBuilderSocket . systemInfo ) . toMatch ( / ^ P y t h o n [ 0 - 9 ] / ) ;
27+ expect ( motionBuilderSocket . interpreterInfo ) . toMatch ( / ^ P y t h o n [ 0 - 9 ] / ) ;
2828 } ) ;
2929
3030 test ( 'Hello World' , async ( ) => {
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ class ErrorWithCode extends Error {
99export class MotionBuilderSocket {
1010 readonly port = 4242 ;
1111
12- /** System information about the connected MotionBuilder instance */
13- public systemInfo ?: string ;
12+ /** Python interpreter info regarding the connected MotionBuilder instance */
13+ public interpreterInfo ?: string ;
1414
1515 private socket ?: net . Socket ;
1616 private isReady = false ;
@@ -121,9 +121,9 @@ export class MotionBuilderSocket {
121121 this . socket . on ( 'data' , ( data ) => {
122122 const dataStr = data . toString ( ) . trim ( ) ;
123123
124- const systemInfoMatch = dataStr . match ( / P y t h o n [ 0 - 9 ] .* ?( \n | $ ) / ) ;
125- if ( systemInfoMatch )
126- this . systemInfo = systemInfoMatch [ 0 ] . trimEnd ( ) ;
124+ const interpreterMatch = dataStr . match ( / P y t h o n [ 0 - 9 ] .* ?( \n | $ ) / ) ;
125+ if ( interpreterMatch )
126+ this . interpreterInfo = interpreterMatch [ 0 ] . trimEnd ( ) ;
127127
128128 if ( dataStr . endsWith ( '>>>' ) ) {
129129 this . socket ?. removeAllListeners ( 'data' ) ;
You can’t perform that action at this time.
0 commit comments