Resolve right path for circom_runtime in tester

This commit is contained in:
Jordi Baylina
2020-03-26 19:05:23 +01:00
parent 38b4a7a8b3
commit da6cff2335

View File

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