Logisim Circuit Injector
This python script requires exactly 3 inputs:
- Destination file name
- Source file name
- Source file subcircuit name
This file will first back up your logisim destination file. It then checks to see if the source file and destination file can be xml parsed and will parse them. It then checks to see if the source file's subscircuit exists, if it does it will copy it, if not it will just exit. Next it inserts the found circuit in the source file into the destination file and then saves it.
python inject.py dest.circ source.circ subcircuitName