Example #1
0
 def __init__(self):
  self.is_32bit = platform.architecture()[0] == "32bit"
  if self.lib32 and self.is_32bit:
   self.lib = load_library(self.lib32, cdll=self.cdll)
  elif self.lib64:
   self.lib = load_library(self.lib64, cdll=self.cdll)
  else:
   self.lib = None
Example #2
0
 def __init__(self):
  self.is_32bit = platform.architecture()[0] == "32bit"
  if self.lib32 and self.is_32bit:
   self.lib = load_library(self.lib32, cdll=self.cdll)
  elif self.lib64:
   self.lib = load_library(self.lib64, cdll=self.cdll)
  else:
   self.lib = None
  if self.lib is not None:
   for func in self.argtypes:
    try:
     getattr(self.lib, func).argtypes = self.argtypes[func]
    except AttributeError:
     pass
Example #3
0
 def __init__(self):
     self.is_32bit = platform.architecture()[0] == "32bit"
     if self.lib32 and self.is_32bit:
         self.lib = load_library(self.lib32, cdll=self.cdll)
     elif self.lib64:
         self.lib = load_library(self.lib64, cdll=self.cdll)
     else:
         self.lib = None
     if self.lib is not None:
         for func in self.argtypes:
             try:
                 getattr(self.lib, func).argtypes = self.argtypes[func]
             except AttributeError:
                 pass
Example #4
0
 def __init__(self):
  is_32bit = platform.architecture()[0] == "32bit"
  if self.lib32 and is_32bit:
   self.lib = load_library(self.lib32)
  elif self.lib64:
   self.lib = load_library(self.lib64)