Skip to content

Commit

Permalink
Move generate_pictures.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Nov 26, 2017
1 parent 1650d19 commit b9a24a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/generate_pictures.py → docs/generate_pictures.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals

Expand Down Expand Up @@ -35,9 +35,9 @@ def convert(name):
for name in file_names:
print('Processing {}.py: '.format(name), end='')
cmds = [
'python {0}.py > {0}.scad',
'openscad -o ../docs/_static/img/shapes/{0}.png --imgsize=400,260 {0}.scad',
'rm {0}.scad',
'python ../examples/{0}.py > ../examples/{0}.scad',
'openscad -o _static/img/shapes/{0}.png --imgsize=400,260 ../examples/{0}.scad',
'rm ../examples/{0}.scad',
]
try:
with open(os.devnull, 'w') as devnull:
Expand Down

0 comments on commit b9a24a3

Please sign in to comment.