Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
+ simplify porting of ReverseEngineering module to Python3
  • Loading branch information
wwmayer committed Jan 20, 2016
1 parent a643463 commit 2814477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/Mod/ReverseEngineering/App/AppReverseEngineering.cpp
Expand Up @@ -524,8 +524,7 @@ Mesh.show(m)


/* Python entry */
extern "C" {
void ReenExport initReverseEngineering()
PyMODINIT_FUNC initReverseEngineering()
{
// load dependent module
try {
Expand All @@ -540,5 +539,3 @@ void ReenExport initReverseEngineering()
new Reen::Module();
Base::Console().Log("Loading ReverseEngineering module... done\n");
}

} // extern "C"
5 changes: 1 addition & 4 deletions src/Mod/ReverseEngineering/Gui/AppReverseEngineeringGui.cpp
Expand Up @@ -61,8 +61,7 @@ class Module : public Py::ExtensionModule<Module>


/* 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.");
Expand All @@ -79,5 +78,3 @@ void ReenGuiExport initReverseEngineeringGui()
// add resources and reloads the translators
loadReverseEngineeringResource();
}

} // extern "C" {

0 comments on commit 2814477

Please sign in to comment.