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:
11
openscad.py
Normal file
11
openscad.py
Normal 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()
|
||||
|
Reference in New Issue
Block a user