Is there any way for the python code of a plugin to read (or ask questions about) the XML configuration files in its bundle? Specifically, I'd like the Python code to enumerate all configured devices/actions/event types with their type-ids and major features.
Note that I'm not looking for "give me all devices" - indigo.devices does that just fine. I'm looking for "give me all the device types for this plugin" (specifically, mine own; but any plugin could play). Something simple like "here's a Dict containing your Devices.xml" would suffice.
Why? I'm building proxy classes in my Python code to represent my various Indigo-visible device types. This is prone to mistake, since the linkages (type-ids, method names) are by convention only. If I had sufficient information about Devices.xml, I could auto-generate those classes and eliminate the mistakes (and a bunch of rote work).
(You could also generate Python metaclasses from the XML definitions. But that's a bit more... interesting, and I don't know if it would interfere with your Boost foundation.)
Cheers
-- perry