1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-01-16 12:29:46 +01:00
Mendel90/set_machine.py
Chris Palmer ad21323ec6 Mods to support e3d in the main branch.
Tweaks to the huxley extruder.
Now shows hot end filament diameter on the BOM.
Moved huxley spool holder back to give more room for lighting.
Updated README.md.
Added huxley to command line usage messages.
2016-01-16 10:47:25 +00:00

24 lines
557 B
Python

#!/usr/bin/env python
from __future__ import print_function
import sys
def set_machine(machine):
text = "include <%s_config.scad>\n" % machine;
f = open("scad/conf/machine.scad","rt")
line = f.read()
f.close()
if line != text:
f = open("scad/conf/machine.scad","wt")
f. write(text);
f.close()
if __name__ == '__main__':
args = len(sys.argv)
if args == 2:
set_machine(sys.argv[1])
else:
print("usage: set_machine dibond|mendel|sturdy|huxley|huxley|your_machine")
sys.exit(1)