1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-01-16 12:29:46 +01:00
Mendel90/make_all_machines.py
Chris Palmer 8a5578948f Mods for Python 3 compatibility.
Added make_all_machines.py to build all variations.
2016-04-25 15:23:51 +01:00

26 lines
634 B
Python

#!/usr/bin/env python
from __future__ import print_function
from make_machine import make_machine
from render import render
from views import views
from prune import prune
from set_machine import set_machine
machines = ["dibond", "dibond_E3D", "sturdy", "mendel", "huxley", "sturdy_E3D"]
has_manual = ["dibond"]
has_views = ["dibond", "sturdy", "huxley"]
for machine in machines:
make_machine(machine)
if machine in has_manual:
render(machine)
if machine in has_views:
views(machine, False)
if '_' in machine and machine.split('_')[0] in machines:
prune(machine)
set_machine("dibond")