Fix renaming all classes to Cpp*
authorBenedikt Tutzer <benedikt.tutzer@tuwien.ac.at>
Wed, 9 Oct 2019 12:21:52 +0000 (14:21 +0200)
committerBenedikt Tutzer <benedikt.tutzer@tuwien.ac.at>
Wed, 9 Oct 2019 12:21:52 +0000 (14:21 +0200)
(This is only relevant for classes that are exposed twice, one time as a
base class and one time as a derived class that can in turn be
overridden in python, but actually all others were renamed)

misc/py_wrap_generator.py

index d8649e9cec794b9fea0533504fa2f331dbd498cb..c58c3f66a93193d6337f2d11d24e6ac212792b80 100644 (file)
@@ -909,14 +909,14 @@ class WClass:
        def gen_boost_py(self):
                body = self.gen_boost_py_body()
                if self.link_type == link_types.derive:
-                       text = "\n\t\tclass_<" + self.name + ">(\"" + self.name + "\""
+                       text = "\n\t\tclass_<" + self.name + ">(\"Cpp" + self.name + "\""
                        text += body
                        text += "\n\t\tclass_<" + self.name
                        text += "Wrap, boost::noncopyable"
                        text += ">(\"" + self.name + "\""
                        text += body
                else:
-                       text = "\n\t\tclass_<" + self.name + ">(\"Cpp" + self.name + "\""
+                       text = "\n\t\tclass_<" + self.name + ">(\"" + self.name + "\""
                        text += body
                return text