Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-07 08:19:53

0001 #!/usr/bin/env python
0002 #
0003 # Copyright 2008 Google Inc. All Rights Reserved.
0004 #
0005 # Licensed under the Apache License, Version 2.0 (the "License");
0006 # you may not use this file except in compliance with the License.
0007 # You may obtain a copy of the License at
0008 #
0009 #      http://www.apache.org/licenses/LICENSE-2.0
0010 #
0011 # Unless required by applicable law or agreed to in writing, software
0012 # distributed under the License is distributed on an "AS IS" BASIS,
0013 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0014 # See the License for the specific language governing permissions and
0015 # limitations under the License.
0016 
0017 """Driver for starting up Google Mock class generator."""
0018 
0019 __author__ = 'nnorwitz@google.com (Neal Norwitz)'
0020 
0021 import os
0022 import sys
0023 
0024 if __name__ == '__main__':
0025   # Add the directory of this script to the path so we can import gmock_class.
0026   sys.path.append(os.path.dirname(__file__))
0027 
0028   from cpp import gmock_class
0029   # Fix the docstring in case they require the usage.
0030   gmock_class.__doc__ = gmock_class.__doc__.replace('gmock_class.py', __file__)
0031   gmock_class.main()