"""Util method to get the FMOD LIBRARY from the filesystem into ctypes."""

import os
import platform
import sys

arch = platform.architecture()[0]
if os.name == "nt":
    from ctypes import windll
    library_type = windll
    LIBRARY_NAME = "fmodstudio"
elif os.name == "posix":
    from ctypes import cdll
    library_type = cdll
    LIBRARY_NAME = "libfmodstudio.so"

LIBRARY = None

def get_library():
    """Load libary file according to architecture's ctype method."""
    global LIBRARY
    if not LIBRARY:
        try:
            LIBRARY = library_type.LoadLibrary(LIBRARY_NAME)
        except:
            current_directory = os.path.dirname(os.path.realpath(sys.argv[0]))
            try:
                LIBRARY = library_type.LoadLibrary(os.path.join(current_directory, LIBRARY_NAME))
            except:
                raise RuntimeError(
                    "Pyfmodex could not find the fmodstudio.dll in the following folders: " + str(
                        sys.executable) + ", " + str(sys.path) + ", " + str(current_directory))

    return LIBRARY

@@ -901,152 +901,37 @@
 the 
-fmodstudio.dll in the following folders: %22 + str(%0A                        sys.executable) + %22, %22 + str(sys.path) + %22, %22 + str(current_directory)
+%22 + LIBRARY_NAME + %22 library%22
 )%0A%0A 

Update library.py