From 7a7260ea1498e4f4405d56263bafd684123f61e8 Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Thu, 2 Jan 2025 13:49:58 -0800 Subject: [PATCH] use relative instead of absolute path with fork --- .../filler/fillerMultithreaded.ts | 24 +++---------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/src/experimental-bots/filler/fillerMultithreaded.ts b/src/experimental-bots/filler/fillerMultithreaded.ts index c01ba695..492682ec 100644 --- a/src/experimental-bots/filler/fillerMultithreaded.ts +++ b/src/experimental-bots/filler/fillerMultithreaded.ts @@ -482,13 +482,7 @@ export class FillerMultithreaded { const dlobBuilderFileName = 'dlobBuilder' + (isTsRuntime() ? '.ts' : '.js'); const dlobBuilderProcess = spawnChild( - path.join( - process.cwd(), - 'src', - 'experimental-bots', - 'filler-common', - dlobBuilderFileName - ), + path.join(__dirname, '../filler-common', dlobBuilderFileName), dlobBuilderArgs, 'dlobBuilder', (msg: any) => { @@ -582,13 +576,7 @@ export class FillerMultithreaded { const orderSubscriberFileName = 'orderSubscriberFiltered' + (isTsRuntime() ? '.ts' : '.js'); const orderSubscriberProcess = spawnChild( - path.join( - process.cwd(), - 'src', - 'experimental-bots', - 'filler-common', - orderSubscriberFileName - ), + path.join(__dirname, '../filler-common', orderSubscriberFileName), orderSubscriberArgs, 'orderSubscriber', (msg: any) => { @@ -618,13 +606,7 @@ export class FillerMultithreaded { const swiftOrderSubscriberFileName = 'swiftOrderSubscriber' + (isTsRuntime() ? '.ts' : '.js'); const swiftOrderSubscriberProcess = spawnChild( - path.join( - process.cwd(), - 'src', - 'experimental-bots', - 'filler-common', - swiftOrderSubscriberFileName - ), + path.join(__dirname, '../filler-common', swiftOrderSubscriberFileName), orderSubscriberArgs, 'swiftOrderSubscriber', (msg: any) => {