def get_vs_dir_from_tool_dir(self):
        """
        Get the directory of Visual Studio
        from the directory Tools.
        """
        index = self.tool_dir.find(r'Common7\Tools')
        return self.tool_dir[:index]