mirror of
https://github.com/nophead/Mendel90.git
synced 2025-09-27 13:19:07 +02:00
12 lines
273 B
Python
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()
|
|
|