1. Python CFFI
  2. Untitled project
  3. cffi

Commits

Armin Rigo  committed b04025b

In this case, we must call backend.load_library() with a path
that contains a '/'.

  • Participants
  • Parent commits e5c3342
  • Branches default

Comments (0)

Files changed (1)

File cffi/vengine_gen.py

View file
  • Ignore whitespace
     def load_library(self):
         # import it with the CFFI backend
         backend = self.ffi._backend
-        module = backend.load_library(self.verifier.modulefilename)
+        # needs to make a path that contains '/', on Posix
+        filename = os.path.join(os.curdir, self.verifier.modulefilename)
+        module = backend.load_library(filename)
         #
         # call loading_gen_struct() to get the struct layout inferred by
         # the C compiler