[PATCH evemu 1/7] python: honor LD_LIBRARY_PATH in the test runner
Peter Hutterer
peter.hutterer at who-t.net
Thu Aug 28 16:44:03 PDT 2014
ctypes.util.find_library doesn't honor LD_LIBRARY_PATH, instantiating directly
(like we do for for libevemu already) does.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
python/evemu-test-runner.in | 2 +-
python/evemu/base.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/evemu-test-runner.in b/python/evemu-test-runner.in
index cec3801..74d2c7f 100644
--- a/python/evemu-test-runner.in
+++ b/python/evemu-test-runner.in
@@ -2,5 +2,5 @@
PYTHON=${PYTHON:- at python@}
-PYTHONPATH=@builddir@:@srcdir@ LD_LIBRARY_PATH=@top_builddir@/src/.libs $PYTHON -m evemu.testing.runner
+PYTHONPATH=@builddir@:@srcdir@ LD_LIBRARY_PATH=@top_builddir@/src/.libs:$LD_LIBRARY_PATH $PYTHON -m evemu.testing.runner
diff --git a/python/evemu/base.py b/python/evemu/base.py
index 8d8b3de..03c7d5e 100644
--- a/python/evemu/base.py
+++ b/python/evemu/base.py
@@ -143,7 +143,7 @@ class LibC(LibraryWrapper):
@staticmethod
def _cdll():
- return ctypes.CDLL(ctypes.util.find_library("c"), use_errno=True)
+ return ctypes.CDLL("libc.so.6", use_errno=True)
_api_prototypes = {
"fdopen": {
--
1.9.3
More information about the Input-tools
mailing list