1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-04 06:27:24 +02:00

Added platters.py and panels.py to aggregate parts for printing / routing.

This commit is contained in:
Chris Palmer
2019-08-18 11:08:44 +01:00
parent be324c31da
commit 466a7a667d
7 changed files with 186 additions and 4 deletions

View File

@@ -24,11 +24,12 @@ from __future__ import print_function
import subprocess, sys
def run(*args):
def run(*args, silent = False):
cmd = ["openscad"] + list(args)
for arg in cmd:
print(arg, end=" ")
print()
if not silent:
for arg in cmd:
print(arg, end=" ")
print()
with open("openscad.log", "w") as log:
rc = subprocess.call(cmd, stdout = log, stderr = log)
for line in open("openscad.log", "rt"):