def __init__(self, engine, configfile=None):
self.engine = engine<EOL>self.original_dir = os.getcwd()<EOL>if configfile is not None:<EOL><INDENT>self.configfile = configfile<EOL><DEDENT>self.known_paths.append('<STR_LIT>'.format(self.engine))<EOL>self.library = self._load_library()<EOL>
Initialize the class.

        The ``engine`` argument should be the path to a model's ``engine``
        file, which is the library name without lib suffix and dylib/dll/so suffix.
        The ``configfile`` argument should be the path to a model's ``*.ini``
        file, or whatever is used for initialization.

        Nothing much should happen here so that the code remains easy to
        test. Most of the library-related initialization happens in the
        :meth:`initialize` method.