From da6cff23355c1c58f1cc6c49fc0ba0c48eaf5b23 Mon Sep 17 00:00:00 2001 From: Jordi Baylina Date: Thu, 26 Mar 2020 19:05:23 +0100 Subject: [PATCH] Resolve right path for circom_runtime in tester --- ports/c/tester.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/c/tester.js b/ports/c/tester.js index 1edd55c..87d8345 100644 --- a/ports/c/tester.js +++ b/ports/c/tester.js @@ -52,7 +52,7 @@ async function c_tester(circomFile, _options) { ); } else throw("Unsupported platform"); - const cdir = path.join(__dirname, "..", "..", "node_modules", "circom_runtime", "c"); + const cdir = path.join(path.dirname(require.resolve("circom_runtime")), "c"); await exec("g++" + ` ${path.join(cdir, "main.cpp")}` +