diff --git a/scripts/docs_gen.py b/scripts/docs_gen.py index 4759a24..8ac0c3d 100755 --- a/scripts/docs_gen.py +++ b/scripts/docs_gen.py @@ -144,11 +144,13 @@ def run_openscad_script(libfile, infile, imgfile, imgsize=(320,240), eye=None, s if render: # Force render scadcmd.extend(["--render", ""]) scadcmd.append(infile) + with open(infile, "r") as f: + script = "".join(f.readlines()); p = subprocess.Popen(scadcmd, shell=False, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) (stdoutdata, stderrdata) = p.communicate(None) res = p.returncode if res != 0 or b"ERROR:" in stderrdata or b"WARNING:" in stderrdata: - print("%s"%stderrdata) + print("\n\n{}".format(stderrdata.decode('utf-8'))) print("////////////////////////////////////////////////////") print("// {}: {} for {}".format(libfile, infile, imgfile)) print("////////////////////////////////////////////////////") diff --git a/version.scad b/version.scad index 2490e08..d8ef10d 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,72]; +BOSL_VERSION = [2,0,73]; // Section: BOSL Library Version Functions