CMS 3D CMS Logo

List of all members | Public Member Functions
Utils.LoadPrerequisiteSource Class Reference
Inheritance diagram for Utils.LoadPrerequisiteSource:

Public Member Functions

def insertInto (self, parameterSet, myname)
 
def setPrerequisites (self, libs)
 

Detailed Description

The class is a Source which loads prerequisites libraries in advance. 
   This is done to make sure we can load libraries containing common blocks in
   the correct order.

Definition at line 3 of file Utils.py.

Member Function Documentation

def Utils.LoadPrerequisiteSource.insertInto (   self,
  parameterSet,
  myname 
)

Definition at line 11 of file Utils.py.

11  def insertInto(self, parameterSet, myname):
12  from ctypes import LibraryLoader, CDLL
13  import platform
14  loader = LibraryLoader(CDLL)
15  ext = platform.uname()[0] == "Darwin" and "dylib" or "so"
16  [loader.LoadLibrary("lib%s.%s" % (l, ext)) for l in self.libraries]
17  super(LoadPrerequisiteSource,self).insertInto(parameterSet,myname)
18 
def insertInto(self, parameterSet, myname)
Definition: Utils.py:11
def Utils.LoadPrerequisiteSource.setPrerequisites (   self,
  libs 
)

Definition at line 8 of file Utils.py.

8  def setPrerequisites(self, *libs):
9  self.__dict__["libraries"] = libs
10 
def setPrerequisites(self, libs)
Definition: Utils.py:8