+ simplify porting of ReverseEngineering module to Python3
This commit is contained in:
parent
a643463733
commit
281447780b
|
@ -524,8 +524,7 @@ Mesh.show(m)
|
|||
|
||||
|
||||
/* Python entry */
|
||||
extern "C" {
|
||||
void ReenExport initReverseEngineering()
|
||||
PyMODINIT_FUNC initReverseEngineering()
|
||||
{
|
||||
// load dependent module
|
||||
try {
|
||||
|
@ -540,5 +539,3 @@ void ReenExport initReverseEngineering()
|
|||
new Reen::Module();
|
||||
Base::Console().Log("Loading ReverseEngineering module... done\n");
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
|
|
@ -61,8 +61,7 @@ private:
|
|||
|
||||
|
||||
/* Python entry */
|
||||
extern "C" {
|
||||
void ReenGuiExport initReverseEngineeringGui()
|
||||
PyMODINIT_FUNC initReverseEngineeringGui()
|
||||
{
|
||||
if (!Gui::Application::Instance) {
|
||||
PyErr_SetString(PyExc_ImportError, "Cannot load Gui module in console application.");
|
||||
|
@ -79,5 +78,3 @@ void ReenGuiExport initReverseEngineeringGui()
|
|||
// add resources and reloads the translators
|
||||
loadReverseEngineeringResource();
|
||||
}
|
||||
|
||||
} // extern "C" {
|
||||
|
|
Loading…
Reference in New Issue
Block a user