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