prototype: footcheck --web takes a relative path (review)

This commit is contained in:
matthewtrahan authored and Matthew Trahan committed 2026-10-05 07:46:28 -05:00
1 parent 6c85238098
commit de597f2607
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@
*/
const opt = (k) => { const i = Deno.args.indexOf(k); return i >= 0 ? Deno.args[i + 1] : null; };
const ROOT = new URL('../', import.meta.url).pathname;
const WEB = (opt('--web') ?? `${ROOT}web`).replace(/\/$/, '');
const WEB = new URL(opt('--web') ?? `${ROOT}web`, `file://${Deno.cwd()}/`).pathname.replace(/\/$/, '');
const { buildTopology, analyze } = await import(`${WEB}/overhangs.js`);
const { buildFins } = await import(`${WEB}/fins.js`);
const { readSTL } = await import(`${WEB}/stl.js`);