blob: a0b6f1172ab2b38e7a1532d8dfde7434562c3897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Thu, 26 May 2011 18:46:14 +0200
Subject: [PATCH] load lib from global dir
The relative path does only work when the library is built in the same
directory as the application, which is not the case if we install
everything.
Forwarded: no
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
pyv4l2.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pyv4l2.py b/pyv4l2.py
index af0ccea..15b090a 100755
--- a/pyv4l2.py
+++ b/pyv4l2.py
@@ -10,7 +10,7 @@ import os
import Image as PILImage
from cStringIO import StringIO
-lib = cdll.LoadLibrary("./libpyv4l2.so")
+lib = cdll.LoadLibrary("libpyv4l2.so")
lib.Error.restype = c_char_p
lib.MMap.restype = c_void_p
lib.GetStandard.restype = c_longlong
--
1.7.5.1
|