From 7843eff6473dd1d4f359edefb7ad40d9a3ca1e69 Mon Sep 17 00:00:00 2001 From: Jeremy Wright Date: Wed, 13 Oct 2021 10:16:59 -0400 Subject: [PATCH] Changes after discussing CadHub integration --- app/api/src/docker/cadquery/runCQ.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/api/src/docker/cadquery/runCQ.ts b/app/api/src/docker/cadquery/runCQ.ts index 9437b89..a19e89b 100644 --- a/app/api/src/docker/cadquery/runCQ.ts +++ b/app/api/src/docker/cadquery/runCQ.ts @@ -26,20 +26,13 @@ export const runCQ = async ({ `--outfile ${stlPath}`, `--outputopts "deflection:${deflection};angularDeflection:${deflection};"`, `--params /tmp/${tempFile}/params.json`, - ].join(' ') - const customizerCommand = [ - `./cq-cli/cq-cli.py`, - `--getparams true`, - `--infile /tmp/${tempFile}/main.py`, - `--outfile ${customizerPath}`, - `--rawparamsoutfile /tmp/${tempFile}/params.json` + `--getparams ${customizerPath}` ].join(' ') console.log('command', mainCommand) let consoleMessage = '' try { ;[consoleMessage] = await Promise.all([ runCommand(mainCommand, 30000), - runCommand(customizerCommand, 30000), ]) const params = JSON.parse( await readFile(customizerPath, { encoding: 'ascii' })