mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 15:25:54 -04:00
interrogate: use fully qualified module name in PyModule_Create
This is helpful when static linking and explicitly initializing the modules. Closes #308
This commit is contained in:
parent
cf4d418f2f
commit
8615e25a12
@ -98,7 +98,7 @@ write_module(ostream &out,ostream *out_h, InterrogateModuleDef *def) {
|
||||
<< "#if PY_MAJOR_VERSION >= 3\n"
|
||||
<< "static struct PyModuleDef python_simple_module = {\n"
|
||||
<< " PyModuleDef_HEAD_INIT,\n"
|
||||
<< " \"" << def->library_name << "\",\n"
|
||||
<< " \"" << def->module_name << "\",\n"
|
||||
<< " nullptr,\n"
|
||||
<< " -1,\n"
|
||||
<< " python_simple_funcs,\n"
|
||||
|
@ -305,7 +305,7 @@ int write_python_table_native(std::ostream &out) {
|
||||
<< "#if PY_MAJOR_VERSION >= 3\n"
|
||||
<< "static struct PyModuleDef py_" << library_name << "_module = {\n"
|
||||
<< " PyModuleDef_HEAD_INIT,\n"
|
||||
<< " \"" << library_name << "\",\n"
|
||||
<< " \"" << module_name << "\",\n"
|
||||
<< " nullptr,\n"
|
||||
<< " -1,\n"
|
||||
<< " nullptr,\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user