1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-01-29 10:28:33 +01:00
Mendel90/openscad.py
Vsevolod Lobko b4f3f2040f works both on windows and linux
you need to get MSVCR100D.dll somewhere to get included openscad_cl running
2012-03-13 00:01:05 +02:00

12 lines
273 B
Python

import subprocess
import os
def run(*args):
if os.name == "nt":
subprocess.call(["openscad_cl"] + list(args))
else:
log = open("openscad.log", "w")
subprocess.call(["openscad"] + list(args), stdout = log, stderr = log)
log.close()