Skip to content

Commit

Permalink
python script that will generate all the stl files
Browse files Browse the repository at this point in the history
need to automate the whole build process
  • Loading branch information
Simon Kirkby committed May 23, 2010
1 parent 1c8bc3c commit e8bdbdf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions process.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/python

import os,string,commands

openscad_com = 'openscad'

scad_files = []
li = os.listdir('./')
for i in li:
if i[-4:] == 'scad' :
scad_files.append(i)

print scad_files
for i in scad_files:
root_name = i[:-4]
command = openscad_com +' -s '+root_name+'stl '+i
print command
commands.getoutput(command)

0 comments on commit e8bdbdf

Please sign in to comment.