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"]
@return: A L{Version} specifying the version number of the project
dataset/ETHPy150Open twisted/twisted/twisted/python/_release.py/Project.getVersion