1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-10-02 15:46:48 +02:00

works both on windows and linux

you need to get MSVCR100D.dll somewhere to get included openscad_cl running
This commit is contained in:
Vsevolod Lobko
2012-03-12 22:55:27 +02:00
parent 04b1fa549d
commit b4f3f2040f
4 changed files with 17 additions and 8 deletions

11
openscad.py Normal file
View File

@@ -0,0 +1,11 @@
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()