1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-08-11 15:54:00 +02:00

Added the cardboard heat sheild.

Tweaked the X belt length and the cable strip length.
Now generates PDF versions of the sheets using Inkscape.
This commit is contained in:
Chris Palmer
2012-04-01 14:08:44 +01:00
parent 35ffdaf780
commit 32bb1a708c
46 changed files with 990 additions and 41 deletions

22
InkCL.py Normal file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env python
#from http://kaioa.com/node/42
import os, subprocess, sys
def run(*args):
print "inkscape",
for arg in args:
print arg,
print
run = subprocess.Popen(["inkscape"] + list(args), shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
out,err=[e.splitlines() for e in run.communicate()]
return run.returncode, out, err
if __name__=='__main__':
r = run(sys.argv[1:])
if not r[0]==0:
print 'return code:',r[0]
for l in r[1]:
print l
for l in r[2]:
print l