mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-12-05 08:05:15 +00:00
- Attempted fix for #765: _unboundmodule missing for python3.
git-svn-id: file:///svn/unbound/trunk@3733 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
1 parent
29cd24bbc6
commit
688fa185b0
2 files changed
+4
No files matched your search
@@ -141,6 +141,9 @@ int pythonmod_init(struct module_env* env, int id)
|
||||
#endif
|
||||
Py_SetProgramName(progname);
|
||||
Py_NoSiteFlag = 1;
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
PyImport_AppendInittab(SWIG_name, (void*)SWIG_init);
|
||||
#endif
|
||||
Py_Initialize();
|
||||
PyEval_InitThreads();
|
||||
SWIG_init();
|
||||
|
||||
Reference in new issue
Block a user