1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-08-20 12:01:26 +02:00

Openscad_cl was found to be unecessary as the Python wrapper does the same thing.

Openscad.exe has been removed, README.txt now specifies the required version.
Stls.py and Sheets.py now use relative include paths.
openscad.py now prints the command it is executing.
This commit is contained in:
Chris Palmer
2012-03-27 18:12:04 +01:00
parent 750ea16468
commit 069dcdfc3d
6 changed files with 12 additions and 11 deletions

View File

@@ -4,6 +4,8 @@ Currently only supports mendel and sturdy machine variants, the huxley version n
Use Use
--- ---
Add the directory of the OpenScad executable to your search. For Windows OpenSCAD-2012.02 or later is required. For Linux it will need to be OpenScad-2011.12 or later.
To make all the files for a machine run To make all the files for a machine run
make_machine.py machine_name make_machine.py machine_name

Binary file not shown.

View File

@@ -1,11 +1,10 @@
import subprocess import subprocess
import os
def run(*args): def run(*args):
if os.name == "nt": print "openscad",
subprocess.call(["openscad_cl"] + list(args)) for arg in args:
else: print arg,
print
log = open("openscad.log", "w") log = open("openscad.log", "w")
subprocess.call(["openscad"] + list(args), stdout = log, stderr = log) subprocess.call(["openscad"] + list(args), stdout = log, stderr = log)
log.close() log.close()

Binary file not shown.

View File

@@ -44,7 +44,7 @@ def sheets(machine):
# #
dxf_maker_name = target_dir + "/" + module + ".scad" dxf_maker_name = target_dir + "/" + module + ".scad"
f = open(dxf_maker_name, "w") f = open(dxf_maker_name, "w")
f.write("use <%s/%s>\n" % (source_dir, filename)) f.write("use <../../%s/%s>\n" % (source_dir, filename))
f.write("%s();\n" % module); f.write("%s();\n" % module);
f.close() f.close()
# #

View File

@@ -40,7 +40,7 @@ def stls(machine, parts = None):
f.close() f.close()
# #
# Decide which fils to make # Decide which files to make
# #
if parts: if parts:
targets = list(parts) #copy the list so we dont modify the list passed in targets = list(parts) #copy the list so we dont modify the list passed in
@@ -66,7 +66,7 @@ def stls(machine, parts = None):
# #
stl_maker_name = source_dir + "/stl.scad" stl_maker_name = source_dir + "/stl.scad"
f = open(stl_maker_name, "w") f = open(stl_maker_name, "w")
f.write("use <%s/%s>\n" % (source_dir, filename)) f.write("use <%s>\n" % filename)
f.write("%s();\n" % module); f.write("%s();\n" % module);
f.close() f.close()
# #