import sys import os import ctypes.util lookup_path = "C:\\Windows\\system32" dll_file = os.path.join(lookup_path, "OpenAL32.dll") print("Python build: %s" % sys.version) print("Path '%s' exists in $PATH: %s" % (lookup_path, lookup_path in os.environ["PATH"].split(os.pathsep))) print("File '%s' exists: %s" % (dll_file, os.path.exists(dll_file) and os.path.isfile(dll_file))) print("ctypes says for '%s': %s" % ("OpenAL32.dll", ctypes.util.find_library("OpenAL32.dll"))) print("ctypes says for '%s': %s" % ("OpenAL32", ctypes.util.find_library("OpenAL32")))