Logo Search packages:      
Sourcecode: abakus version File versions  Download package

Alias.py

import UserDict
import SCons.Errors
import SCons.Node
import SCons.Util
00005 class AliasNameSpace(UserDict.UserDict):
    def Alias(self, name):
        if self.has_key(name):
            raise SCons.Errors.UserError
        self[name]=SCons.Node.Alias.Alias(name)
        return self[name]
    def lookup(self, name):
        try:
            return self[name]
        except KeyError:
            return None
00016 class Alias(SCons.Node.Node):
    def __init__(self, name):
        SCons.Node.Node.__init__(self)
        self.name=name
    def __str__(self):
        return self.name
    def build(self):
        pass
    current=SCons.Node.Node.children_are_up_to_date
    def sconsign(self):
        pass
    def is_under(self, dir):
        return 1
    def get_contents(self):
        contents=""
        for kid in self.children(None):
            contents=contents + kid.get_contents()
        return contents
default_ans=AliasNameSpace()
SCons.Node.arg2nodes_lookups.append(default_ans.lookup)

Generated by  Doxygen 1.6.0   Back to index