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:
@@ -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"):
|
||||
|
Reference in New Issue
Block a user