]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
updated patch from Tom.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 10 Aug 2011 07:37:57 +0000 (07:37 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 10 Aug 2011 07:37:57 +0000 (07:37 +0000)
git-svn-id: file:///svn/unbound/trunk@2472 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
pythonmod/pythonmod.c

index ffb5465ec2c20e19343b7eee8e5a9bc18699c66a..95f74125ab5031c3ee2a751f9735dfe78f0cd8cf 100644 (file)
@@ -1,5 +1,6 @@
 10 August 2011: Wouter
        - Fix python site-packages path to /usr/lib64.
+       - updated patch from Tom.
 
 9 August 2011: Wouter
        - patch from Tom Hendrikx fixes load of python modules.
index a0d1cf7686d85dcf99379694789cefd847b456f1..759f1fff4a74b9b06bef770c6c61a3299e5a78be 100644 (file)
@@ -153,8 +153,8 @@ 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");
-   PyRun_SimpleString("import sysconfig \n");
-   PyRun_SimpleString("sys.path.append(sysconfig.get_path('purelib')) \n");
+   PyRun_SimpleString("import distutils.sysconfig \n");
+   PyRun_SimpleString("sys.path.append(distutils.sysconfig.get_python_lib(1,0)) \n");
    if (PyRun_SimpleString("from unboundmodule import *\n") < 0)
    {
       log_err("pythonmod: cannot initialize core module: unboundmodule.py");