From 793d46fae757a7cc515247e2fed2e80bce5af868 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 8 Jul 2013 01:42:48 +0000 Subject: [PATCH] Work around the default ctor being protected, tell sip how to get a default instance. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etg/stdpaths.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etg/stdpaths.py b/etg/stdpaths.py index 9d393880..6f70daa1 100644 --- a/etg/stdpaths.py +++ b/etg/stdpaths.py @@ -32,9 +32,13 @@ def run(): c = module.find('wxStandardPaths') assert isinstance(c, etgtools.ClassDef) - c.find('wxStandardPaths').ignore() + c.find('wxStandardPaths').ignore(False) c.abstract = True + # Since the ctor is protected we need to tell SIP how to get a default + # instance of this class + c.instanceCode = 'sipCpp = & wxStandardPaths::Get();' + c.find('IgnoreAppSubDir').ignore() c.find('DontIgnoreAppSubDir').ignore() c.find('IgnoreAppBuildSubDirs').ignore()