#include "trygvis/kicad/netlist.h" using namespace trygvis::kicad; using trygvis::kicad::netlist::component; using trygvis::kicad::netlist::kicad_net_loader; using trygvis::kicad::netlist::kicad_parse_exception; using trygvis::kicad::netlist::net; using nl = trygvis::kicad::netlist::netlist; #include "pybind11/pybind11.h" #include "pybind11/stl.h" #include "pybind11/eval.h" namespace py = pybind11; #include #include #include #include #include #include #include using namespace std; namespace fs = std::experimental::filesystem; #ifdef _WIN32 static string PATH_SEPARATOR(";"); #else static string PATH_SEPARATOR(":"); #endif char *program; __attribute__((noreturn)) void usage(const char *reason = nullptr) { if (reason) { fprintf(stderr, "error: %s\n", reason); } fprintf(stderr, "usage: %s -n -r -t