Added --hardwarnings to openscad.py

This commit is contained in:
Chris Palmer 2021-01-15 18:13:20 +00:00
parent 93b260b7b9
commit 7f9122ae66
2 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ def boms(target = None, assembly = None):
#
# Run openscad
#
openscad.run("-D", "$bom=2", "-D", "$preview=true", "--hardwarnings", "-o", "openscad.echo", "-d", bom_dir + "/bom.deps", bom_maker_name)
openscad.run("-D", "$bom=2", "-D", "$preview=true", "-o", "openscad.echo", "-d", bom_dir + "/bom.deps", bom_maker_name)
os.remove(bom_maker_name)
print("Generating bom ...", end=" ")

View File

@ -25,7 +25,7 @@ from __future__ import print_function
import subprocess, sys
def run_list(args, silent = False, verbose = False):
cmd = ["openscad"] + args
cmd = ["openscad", "--hardwarnings"] + args
if not silent:
for arg in cmd:
print(arg, end=" ")