Imported modules
|
|
import Products
import imp
import os
import rotor
from string import find, split
import zlib
|
Functions
|
|
_getPath
getBrain
getObject
getPath
|
|
_getPath
|
_getPath (
home,
prefix,
name,
suffixes,
)
|
|
getBrain
|
getBrain (
module,
class_name,
reload=0,
)
Check/load a class
|
|
getObject
|
getObject (
module,
name,
reload=0,
modules={},
)
|
|
getPath
|
getPath (
prefix,
name,
checkProduct=1,
suffixes=( '', ),
)
Find a file in one of several relative locations
Arguments:
- prefix
The location, relative to some home, to look for the
file
- name
The name of the file. This must not be a path.
- checkProduct
a flag indicating whether product directories
should be used as additional hope ares to be searched. This
defaults to a true value.
If this is true and the name contains a dot, then the
text before the dot is treated as a product name and
the product package directory is used as anothe rhome.
- suffixes
a sequences of file suffixes to check.
By default, the name is used without a suffix.
The search takes on multiple homes which are INSTANCE_HOME,
the directory containing the directory containing SOFTWARE_HOME, and
possibly product areas.
|
Classes
|
|
|
|