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")}` +