mirror of
https://github.com/gittrahan/support-fins.git
synced 2026-10-19 02:10:52 -05:00
prototype: footcheck --web takes a relative path (review)
This commit is contained in:
1 parent
6c85238098
commit
de597f2607
1 file changed
+1
-1
Vendored
+1
-1
@@ -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`);
|
||||
|
||||
Reference in new issue
Block a user