CMS 3D CMS Logo

Public Member Functions

Utils::LoadPrerequisiteSource Class Reference

List of all members.

Public Member Functions

def insertInto
def setPrerequisites

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.

00012                                             :
00013     from ctypes import LibraryLoader, CDLL
00014     import platform
00015     loader = LibraryLoader(CDLL)
00016     ext = platform.uname()[0] == "Darwin" and "dylib" or "so"
00017     [loader.LoadLibrary("lib%s.%s" % (l, ext)) for l in self.libraries]
00018     super(LoadPrerequisiteSource,self).insertInto(parameterSet,myname)
def Utils::LoadPrerequisiteSource::setPrerequisites (   self,
  libs 
)

Definition at line 8 of file Utils.py.

00009                                    :
00010     self.__dict__["libraries"] = libs