From 52e02998ef9d0c5643cf037f2db3cc5cf7c8c451 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 16 May 1995 13:43:09 +0000 Subject: Made the example slightly more complete --- Tools/modulator/EXAMPLE.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tools/modulator/EXAMPLE.py b/Tools/modulator/EXAMPLE.py index 4043699..d4b254a 100644 --- a/Tools/modulator/EXAMPLE.py +++ b/Tools/modulator/EXAMPLE.py @@ -3,6 +3,9 @@ # # You may also have to strip some imports out of modulator to make # it work. + +import genmodule + # # Generate code for a simple object with a method called sample @@ -44,3 +47,7 @@ m.name = 'sample' m.abbrev = 'sample' m.methodlist = ['newsimple', 'newnumberish', 'newott'] m.objects = [o, o2, o3] + +fp = open('EXAMPLEmodule.c', 'w') +genmodule.write(fp, m) +fp.close() -- cgit v0.12