[vlc-commits] commit: python: load versioned .so (Olivier Aubert )

git at videolan.org git at videolan.org
Mon Jun 28 18:14:34 CEST 2010


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Jun 28 18:10:35 2010 +0200| [00008045029eec0621980b00bfbbf3b336f26f78] | committer: Olivier Aubert 

python: load versioned .so

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=00008045029eec0621980b00bfbbf3b336f26f78
---

 header.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/header.py b/header.py
index eb92dd2..c0f9ead 100755
--- a/header.py
+++ b/header.py
@@ -42,7 +42,10 @@ build_date="This will be replaced by the build date"
 detected_plugin_path=None
 
 if sys.platform == 'linux2':
-    dll=ctypes.CDLL('libvlc.so')
+    try:
+        dll=ctypes.CDLL('libvlc.so')
+    except OSError:
+        dll=ctypes.CDLL('libvlc.so.5')
 elif sys.platform == 'win32':
     import ctypes.util
     import os



More information about the vlc-commits mailing list