Skip to content

Commit

Permalink
Finally! the PathSim object is visible at freecad
Browse files Browse the repository at this point in the history
  • Loading branch information
shaise authored and yorikvanhavre committed Oct 31, 2017
1 parent 60ef98a commit e366a3c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Path/PathSimulator/App/AppPathSimulator.cpp
Expand Up @@ -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");
Expand All @@ -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);
}
21 changes: 21 additions & 0 deletions src/Mod/Path/PathSimulator/App/PathSimPyImp.cpp
@@ -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"

Expand Down

0 comments on commit e366a3c

Please sign in to comment.