Skip to content
Snippets Groups Projects
Commit 65388715 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Merge pull request #63 from cmusser/master

Issue #62: Set initialized flag to true after loading library.
parents 72087dba fdd9f371
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ class Library(object):
def __init__(self, ffi):
self.ffi = ffi
self._initalized = False
self._initialized = False
# This prevents the compile_module() from being called, the module
# should have been compiled by setup.py
......@@ -71,8 +71,9 @@ class Library(object):
self.ffi.verifier.compile_module = _compile_module
def __getattr__(self, name):
if not self._initalized:
if not self._initialized:
self._lib = self.ffi.verifier.load_library()
self._initialized = True
# redirect attribute access to the underlying lib
attr = getattr(self._lib, name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment