Finally! the PathSim object is visible at freecad

This commit is contained in:
Shai Seger
2017-10-19 23:40:27 +03:00
committed by Yorik van Havre
parent 60ef98a8fe
commit e366a3cfab
2 changed files with 22 additions and 1 deletions

View File

@@ -76,7 +76,6 @@ PyMOD_INIT_FUNC(PathSimulator)
//
PyObject* mod = PathSimulator::initModule();
Base::Console().Log("Loading PathSimulator module.... done\n");
PyMOD_Return(mod);
// Add Types to module
Base::Interpreter().addType(&PathSimulator::PathSimPy::Type, mod, "PathSim");
@@ -86,4 +85,5 @@ PyMOD_INIT_FUNC(PathSimulator)
// This function is responsible for adding inherited slots from a type's base class.
PathSimulator::PathSim::init();
PyMOD_Return(mod);
}

View File

@@ -1,3 +1,24 @@
/***************************************************************************
* Copyright (c) 2017 Shai Seger <shaise at gmail> *
* *
* This file is part of the FreeCAD CAx development system. *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this library; see the file COPYING.LIB. If not, *
* write to the Free Software Foundation, Inc., 59 Temple Place, *
* Suite 330, Boston, MA 02111-1307, USA *
* *
***************************************************************************/
#include "PreCompiled.h"