Define extension code within the _ext directory with the name of the object as a non-class Pythonic name + .py.
# _ext/machine.py
class Machine(object):
def execute(self, command, ...):
pass
When a class is parsed that has a corresponding extension module copy the contents of the file into
the _base.py after the auto-generated class has been added and make the extension code inherit from the auto-generated class. This makes it so that all auto-generated classes automatically have extensions added.
Define extension code within the
_ext
directory with the name of the object as a non-class Pythonic name +.py
.When a class is parsed that has a corresponding extension module copy the contents of the file into the
_base.py
after the auto-generated class has been added and make the extension code inherit from the auto-generated class. This makes it so that all auto-generated classes automatically have extensions added.Also will need to add a test that runs the autogen script on Travis to ensure that the script is run each time extensions are changed.