mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- patch from Tom Hendrikx fixes load of python modules.
git-svn-id: file:///svn/unbound/trunk@2470 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
cafc73a74f
commit
ad864b0f7e
2 changed files with 5 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
9 August 2011: Wouter
|
||||||
|
- patch from Tom Hendrikx fixes load of python modules.
|
||||||
|
|
||||||
8 August 2011: Wouter
|
8 August 2011: Wouter
|
||||||
- make clean had ldns-src reference, removed.
|
- make clean had ldns-src reference, removed.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -153,6 +153,8 @@ int pythonmod_init(struct module_env* env, int id)
|
||||||
}
|
}
|
||||||
PyRun_SimpleString("sys.path.append('"RUN_DIR"') \n");
|
PyRun_SimpleString("sys.path.append('"RUN_DIR"') \n");
|
||||||
PyRun_SimpleString("sys.path.append('"SHARE_DIR"') \n");
|
PyRun_SimpleString("sys.path.append('"SHARE_DIR"') \n");
|
||||||
|
PyRun_SimpleString("import sysconfig \n");
|
||||||
|
PyRun_SimpleString("sys.path.append(sysconfig.get_path('purelib')) \n");
|
||||||
if (PyRun_SimpleString("from unboundmodule import *\n") < 0)
|
if (PyRun_SimpleString("from unboundmodule import *\n") < 0)
|
||||||
{
|
{
|
||||||
log_err("pythonmod: cannot initialize core module: unboundmodule.py");
|
log_err("pythonmod: cannot initialize core module: unboundmodule.py");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue