moved files. Make _unbound python libunbound module.

git-svn-id: file:///svn/unbound/trunk@1573 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2009-04-02 09:47:35 +00:00
parent 0b4fe963d5
commit 2e20c86309
27 changed files with 3368 additions and 4899 deletions
+1
View File
@@ -0,0 +1 @@
this directory exists to pacify sphinx-build.
+1 -1
View File
@@ -2,7 +2,7 @@
* interface.i: unbound python module
*/
%module Unbound
%module unboundmodule
%{
#include <sys/types.h>
#include <sys/socket.h>
+2 -2
View File
@@ -98,9 +98,9 @@ int pythonmod_init(struct module_env* env, int id)
}
PyRun_SimpleString("sys.path.append('"RUN_DIR"') \n");
PyRun_SimpleString("sys.path.append('"SHARE_DIR"') \n");
if (PyRun_SimpleString("from Unbound import *\n") < 0)
if (PyRun_SimpleString("from unboundmodule import *\n") < 0)
{
log_err("pythonmod: cannot initialize core module: Unbound.py");
log_err("pythonmod: cannot initialize core module: unboundmodule.py");
return 0;
}