mirror of
https://github.com/nophead/Mendel90.git
synced 2025-08-09 14:56:29 +02:00
modified to run on linux
windows support is broken
This commit is contained in:
4
bom.py
4
bom.py
@@ -95,8 +95,10 @@ def boms(machine):
|
|||||||
f. write("include <%s_config.scad>\n" % machine);
|
f. write("include <%s_config.scad>\n" % machine);
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
subprocess.call(["openscad_cl", "-o", "dummy.stl", "scad/bom.scad"])
|
log = open("openscad.log", "w")
|
||||||
|
subprocess.call(["openscad", "-o", "dummy.csg", "scad/bom.scad"], stdout = log, stderr = log)
|
||||||
print "Generating bom ...",
|
print "Generating bom ...",
|
||||||
|
log.close()
|
||||||
|
|
||||||
main = BOM()
|
main = BOM()
|
||||||
stack = []
|
stack = []
|
||||||
|
@@ -49,7 +49,7 @@ def sheets(machine):
|
|||||||
# Run openscad on the created file
|
# Run openscad on the created file
|
||||||
#
|
#
|
||||||
dxf_name = target_dir + "/" + module[:-4] + ".dxf"
|
dxf_name = target_dir + "/" + module[:-4] + ".dxf"
|
||||||
subprocess.call(["openscad_cl", "-o", dxf_name, dxf_maker_name])
|
subprocess.call(["openscad", "-o", dxf_name, dxf_maker_name])
|
||||||
dxf_to_svg(dxf_name)
|
dxf_to_svg(dxf_name)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
2
stls.py
2
stls.py
@@ -58,7 +58,7 @@ def stls(machine):
|
|||||||
# Run openscad on the created file
|
# Run openscad on the created file
|
||||||
#
|
#
|
||||||
stl_name = target_dir + "/" + module[:-4] + ".stl"
|
stl_name = target_dir + "/" + module[:-4] + ".stl"
|
||||||
subprocess.call(["openscad_cl", "-o", stl_name, stl_maker_name])
|
subprocess.call(["openscad", "-o", stl_name, stl_maker_name])
|
||||||
targets.remove(module)
|
targets.remove(module)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user