aboutsummaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-07-05 06:30:16 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-07-05 06:30:16 +0100
commitd0af4f50d301cd971e7dadf1e48a5b5c8c66e4b4 (patch)
tree4787494eb1d212ccaac7a36e05e17d5750bb936f /Lib
parenteb98c0be99a3da4ea860a5068e067459d472a658 (diff)
downloadswig-d0af4f50d301cd971e7dadf1e48a5b5c8c66e4b4.tar.gz
Add %pythonbegin directive.
For adding code at the beginning of the generated .py file.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/python/pyuserdir.swg1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/python/pyuserdir.swg b/Lib/python/pyuserdir.swg
index 5247ee65b..d3c3eb188 100644
--- a/Lib/python/pyuserdir.swg
+++ b/Lib/python/pyuserdir.swg
@@ -7,6 +7,7 @@
/* shadow code */
#define %shadow %insert("shadow")
#define %pythoncode %insert("python")
+#define %pythonbegin %insert("pythonbegin")
/* ------------------------------------------------------------------------- */