[vlc-commits] Fix dll not found on Python 3.8+

RhiobeT git at videolan.org
Wed Apr 29 23:06:38 CEST 2020


vlc/python | branch: master | RhiobeT <rhiobet at gmail.com> | Wed Apr 29 22:23:40 2020 +0200| [e1d2bc87888e9768fc7593189bc242eec8a51f10] | committer: RhiobeT

Fix dll not found on Python 3.8+

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

 generator/templates/header.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/generator/templates/header.py b/generator/templates/header.py
index f3cf460..ddd9600 100755
--- a/generator/templates/header.py
+++ b/generator/templates/header.py
@@ -160,11 +160,11 @@ def find_lib():
                 p = os.getcwd()
                 os.chdir(plugin_path)
                  # if chdir failed, this will raise an exception
-                dll = ctypes.CDLL(libname)
+                dll = ctypes.CDLL('.\\' + libname)
                  # restore cwd after dll has been loaded
                 os.chdir(p)
             else:  # may fail
-                dll = ctypes.CDLL(libname)
+                dll = ctypes.CDLL('.\\' + libname)
         else:
             plugin_path = os.path.dirname(p)
             dll = ctypes.CDLL(p)



More information about the vlc-commits mailing list