Skip to content

Commit

Permalink
Openscad_cl was found to be unecessary as the Python wrapper does the…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
nophead committed Mar 27, 2012
1 parent 750ea16 commit 069dcdf
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
2 changes: 2 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Currently only supports mendel and sturdy machine variants, the huxley version n

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
make_machine.py machine_name

Expand Down
Binary file removed openscad.exe
Binary file not shown.
15 changes: 7 additions & 8 deletions openscad.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
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()

print "openscad",
for arg in args:
print arg,
print
log = open("openscad.log", "w")
subprocess.call(["openscad"] + list(args), stdout = log, stderr = log)
log.close()
Binary file removed openscad_cl.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def sheets(machine):
#
dxf_maker_name = target_dir + "/" + module + ".scad"
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.close()
#
Expand Down
4 changes: 2 additions & 2 deletions stls.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def stls(machine, parts = None):
f.close()

#
# Decide which fils to make
# Decide which files to make
#
if parts:
targets = list(parts) #copy the list so we dont modify the list passed in
Expand All @@ -66,7 +66,7 @@ def stls(machine, parts = None):
#
stl_maker_name = source_dir + "/stl.scad"
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.close()
#
Expand Down

0 comments on commit 069dcdf

Please sign in to comment.