+ add '_' as prefix for PartDesign module to fix name clash
This commit is contained in:
parent
6b89c03181
commit
068452f0ac
|
@ -58,7 +58,7 @@ PyDoc_STRVAR(module_PartDesign_doc,
|
||||||
|
|
||||||
/* Python entry */
|
/* Python entry */
|
||||||
extern "C" {
|
extern "C" {
|
||||||
void PartDesignExport initPartDesign()
|
void PartDesignExport init_PartDesign()
|
||||||
{
|
{
|
||||||
// load dependent module
|
// load dependent module
|
||||||
try {
|
try {
|
||||||
|
@ -69,7 +69,7 @@ void PartDesignExport initPartDesign()
|
||||||
PyErr_SetString(PyExc_ImportError, e.what());
|
PyErr_SetString(PyExc_ImportError, e.what());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Py_InitModule3("PartDesign", PartDesign_methods, module_PartDesign_doc); /* mod name, table ptr */
|
Py_InitModule3("_PartDesign", PartDesign_methods, module_PartDesign_doc); /* mod name, table ptr */
|
||||||
Base::Console().Log("Loading PartDesign module... done\n");
|
Base::Console().Log("Loading PartDesign module... done\n");
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ fc_target_copy_resource(PartDesign
|
||||||
${CMAKE_BINARY_DIR}/Mod/PartDesign
|
${CMAKE_BINARY_DIR}/Mod/PartDesign
|
||||||
${PartDesign_Scripts})
|
${PartDesign_Scripts})
|
||||||
|
|
||||||
SET_BIN_DIR(PartDesign PartDesign /Mod/PartDesign)
|
SET_BIN_DIR(PartDesign _PartDesign /Mod/PartDesign)
|
||||||
SET_PYTHON_PREFIX_SUFFIX(PartDesign)
|
SET_PYTHON_PREFIX_SUFFIX(PartDesign)
|
||||||
|
|
||||||
INSTALL(TARGETS PartDesign DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
INSTALL(TARGETS PartDesign DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
import Scripts.FilletArc
|
import _PartDesign
|
||||||
makeFilletArc = Scripts.FilletArc.makeFilletArc
|
makeFilletArc = _PartDesign.makeFilletArc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user