Skip to content

Commit 7a7260e

Browse files
committed
use relative instead of absolute path with fork
1 parent c20bc1f commit 7a7260e

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

src/experimental-bots/filler/fillerMultithreaded.ts

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -482,13 +482,7 @@ export class FillerMultithreaded {
482482
const dlobBuilderFileName =
483483
'dlobBuilder' + (isTsRuntime() ? '.ts' : '.js');
484484
const dlobBuilderProcess = spawnChild(
485-
path.join(
486-
process.cwd(),
487-
'src',
488-
'experimental-bots',
489-
'filler-common',
490-
dlobBuilderFileName
491-
),
485+
path.join(__dirname, '../filler-common', dlobBuilderFileName),
492486
dlobBuilderArgs,
493487
'dlobBuilder',
494488
(msg: any) => {
@@ -582,13 +576,7 @@ export class FillerMultithreaded {
582576
const orderSubscriberFileName =
583577
'orderSubscriberFiltered' + (isTsRuntime() ? '.ts' : '.js');
584578
const orderSubscriberProcess = spawnChild(
585-
path.join(
586-
process.cwd(),
587-
'src',
588-
'experimental-bots',
589-
'filler-common',
590-
orderSubscriberFileName
591-
),
579+
path.join(__dirname, '../filler-common', orderSubscriberFileName),
592580
orderSubscriberArgs,
593581
'orderSubscriber',
594582
(msg: any) => {
@@ -618,13 +606,7 @@ export class FillerMultithreaded {
618606
const swiftOrderSubscriberFileName =
619607
'swiftOrderSubscriber' + (isTsRuntime() ? '.ts' : '.js');
620608
const swiftOrderSubscriberProcess = spawnChild(
621-
path.join(
622-
process.cwd(),
623-
'src',
624-
'experimental-bots',
625-
'filler-common',
626-
swiftOrderSubscriberFileName
627-
),
609+
path.join(__dirname, '../filler-common', swiftOrderSubscriberFileName),
628610
orderSubscriberArgs,
629611
'swiftOrderSubscriber',
630612
(msg: any) => {

0 commit comments

Comments
 (0)