Various utility functions go here.
|
|
|
containsAny(str,
set)
Check whether sequence str contains ANY of the items in set. |
source code
|
|
|
containsAll(str,
set)
Check whether sequence str contains ALL of the items in set. |
source code
|
|
|
containsOnly(str,
set)
Check whether sequence str contains ONLY items in set. |
source code
|
|
|
splitext(path)
Same as os.path.splitext() but faster. |
source code
|
|
|
|
|
get_environment_var(varstr)
Given a string, first determine if it looks like a reference
to a single environment variable, like "$FOO" or "${FOO}". |
source code
|
|
|
render_tree(root,
child_func,
prune=0,
margin=[ 0] ,
visited={ } )
Render a tree of nodes into an ASCII tree view. |
source code
|
|
|
|
|
print_tree(root,
child_func,
prune=0,
showtags=0,
margin=[ 0] ,
visited={ } )
Print a tree of nodes. |
source code
|
|
|
is_Dict(obj,
isinstance=<built-in function isinstance>,
DictTypes=dict, UserDict) |
source code
|
|
|
is_List(obj,
isinstance=<built-in function isinstance>,
ListTypes=( <type 'list'>, <class 'UserList.UserList'>) ) |
source code
|
|
|
is_Sequence(obj,
isinstance=<built-in function isinstance>,
SequenceTypes=( <type 'list'>, <type 'tuple'>, <class 'UserList.UserList'>) ) |
source code
|
|
|
is_Tuple(obj,
isinstance=<built-in function isinstance>,
tuple=<type 'tuple'>) |
source code
|
|
|
is_String(obj,
isinstance=<built-in function isinstance>,
StringTypes=( <type 'str'>, <type 'unicode'>, <class 'UserString.UserString'>) ) |
source code
|
|
|
is_Scalar(obj,
isinstance=<built-in function isinstance>,
StringTypes=( <type 'str'>, <type 'unicode'>, <class 'UserString.UserString'>) ,
SequenceTypes=( <type 'list'>, <type 'tuple'>, <class 'UserList.UserList'>) ) |
source code
|
|
|
do_flatten(sequence,
result,
isinstance=<built-in function isinstance>,
StringTypes=( <type 'str'>, <type 'unicode'>, <class 'UserString.UserString'>) ,
SequenceTypes=( <type 'list'>, <type 'tuple'>, <class 'UserList.UserList'>) ) |
source code
|
|
|
flatten(obj,
isinstance=<built-in function isinstance>,
StringTypes=( <type 'str'>, <type 'unicode'>, <class 'UserString.UserString'>) ,
SequenceTypes=( <type 'list'>, <type 'tuple'>, <class 'UserList.UserList'>) ,
do_flatten=<function do_flatten at 0x1dd3e60>)
Flatten a sequence to a non-nested list. |
source code
|
|
|
flatten_sequence(sequence,
isinstance=<built-in function isinstance>,
StringTypes=( <type 'str'>, <type 'unicode'>, <class 'UserString.UserString'>) ,
SequenceTypes=( <type 'list'>, <type 'tuple'>, <class 'UserList.UserList'>) ,
do_flatten=<function do_flatten at 0x1dd3e60>)
Flatten a sequence to a non-nested list. |
source code
|
|
|
to_String(s,
isinstance=<built-in function isinstance>,
str=<type 'str'>,
UserString=<class 'UserString.UserString'>,
BaseStringTypes=( <type 'str'>, <type 'unicode'>) ) |
source code
|
|
|
to_String_for_subst(s,
isinstance=<built-in function isinstance>,
join=<function join at 0x7f2bace6e8c0>,
str=<type 'str'>,
to_String=<function to_String at 0x1dd8050>,
BaseStringTypes=( <type 'str'>, <type 'unicode'>) ,
SequenceTypes=( <type 'list'>, <type 'tuple'>, <class 'UserList.UserList'>) ,
UserString=<class 'UserString.UserString'>) |
source code
|
|
|
to_String_for_signature(obj,
to_String_for_subst=<function to_String_for_subst at 0x1dd80c8>,
AttributeError=<type 'exceptions.AttributeError'>) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WhereIs(file,
path=None,
pathext=None,
reject=[ ] ) |
source code
|
|
|
PrependPath(oldpath,
newpath,
sep=' : ' ,
delete_existing=1,
canonicalize=None)
This prepends newpath elements to the given oldpath. |
source code
|
|
|
AppendPath(oldpath,
newpath,
sep=' : ' ,
delete_existing=1,
canonicalize=None)
This appends new path elements to the given old path. |
source code
|
|
|
|
|
|
|
|
|
adjustixes(fname,
pre,
suf,
ensure_suffix=False) |
source code
|
|
|
|
|
|
|
|
|
make_path_relative(path)
makes an absolute path name to a relative pathname. |
source code
|
|
|
AddMethod(object,
function,
name=None)
Adds either a bound method to an instance or an unbound method to
a class. |
source code
|
|
|
RenameFunction(function,
name)
Returns a function identical to the specified function, but with
the specified name. |
source code
|
|
|
|
|
|
|
|
|
|
|
_altsep = None
hash(x)
|
|
_get_env_var = re.compile(r'^\$( [ _a- zA- Z] \w* | \{[ _a- zA- Z] \w* \}) $')
|
|
UnicodeType = types.UnicodeType
|
|
DictTypes = dict, UserDict
|
|
ListTypes = ( <type 'list'>, <class 'UserList.UserList'>)
|
|
SequenceTypes = ( <type 'list'>, <type 'tuple'>, <class 'UserLi...
|
|
StringTypes = ( <type 'str'>, <type 'unicode'>, <class 'UserStr...
|
|
BaseStringTypes = ( <type 'str'>, <type 'unicode'>)
|
|
d = {}
|
|
_semi_deepcopy_dispatch = {}
|
|
can_read_reg = 0
|
|
hkey_mod = win32con
|
|
RegEnumKey = win32api.RegEnumKey
|
|
RegEnumValue = win32api.RegEnumValue
|
|
RegQueryValueEx = win32api.RegQueryValueEx
|
|
HKEY_CLASSES_ROOT = None
hash(x)
|
|
HKEY_LOCAL_MACHINE = None
hash(x)
|
|
HKEY_CURRENT_USER = None
hash(x)
|
|
HKEY_USERS = None
hash(x)
|
|
display = DisplayEngine()
|
|
md5 = True
|
|
__package__ = ' SCons '
|