summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Tools/modulator/EXAMPLE.py7
1 files changed, 7 insertions, 0 deletions
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()