summaryrefslogtreecommitdiff
path: root/scripts/kconfig/kconfig.i
Side-by-side diff
Diffstat (limited to 'scripts/kconfig/kconfig.i') (more/less context) (ignore whitespace changes)
-rw-r--r--scripts/kconfig/kconfig.i5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/kconfig/kconfig.i b/scripts/kconfig/kconfig.i
index 699cb13..77405fc 100644
--- a/scripts/kconfig/kconfig.i
+++ b/scripts/kconfig/kconfig.i
@@ -32,4 +32,9 @@ static void expr_to_s_help(void *data, const char *str)
#endif
+#ifdef SWIGPYTHON
+%rename (Property) property;
+%rename (default) def;
+#endif
+
%immutable;
%include "expr.h"