'@return: A L{incremental.Version} specifying the version number of the
project based on live python modules.'

def getVersion(self):

    namespace = {}
    directory = self.directory
    while (not namespace):
        if (directory.path == '/'):
            raise Exception('Not    inside    a    Twisted    project.')
        elif (not (directory.basename() == 'twisted')):
            directory = directory.parent()
        else:
            execfile(directory.child('_version.py').path, namespace)
    return namespace['__version__']
