1c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch#!/usr/bin/env python 2c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# 3c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# Copyright 2008 Google Inc. All Rights Reserved. 4c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# 5c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# Licensed under the Apache License, Version 2.0 (the "License"); 6c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# you may not use this file except in compliance with the License. 7c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# You may obtain a copy of the License at 8c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# 9c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# http://www.apache.org/licenses/LICENSE-2.0 10c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# 11c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# Unless required by applicable law or agreed to in writing, software 12c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# distributed under the License is distributed on an "AS IS" BASIS, 13c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# See the License for the specific language governing permissions and 15c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch# limitations under the License. 16c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch 17c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch"""Driver for starting up Google Mock class generator.""" 18c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch 19c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch__author__ = 'nnorwitz@google.com (Neal Norwitz)' 20c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch 21c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochimport os 22c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochimport sys 23c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch 24c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochif __name__ == '__main__': 25c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch # Add the directory of this script to the path so we can import gmock_class. 26c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch sys.path.append(os.path.dirname(__file__)) 27c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch 28c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch from cpp import gmock_class 29c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch # Fix the docstring in case they require the usage. 30c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch gmock_class.__doc__ = gmock_class.__doc__.replace('gmock_class.py', __file__) 31c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch gmock_class.main() 32