Adrià Vilanova MartÃnez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 1 | #!/usr/bin/python |
| 2 | # Copyright 2017 Google Inc. All Rights Reserved. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | r"""Wrapper script to set up import paths for endpointscfg. |
| 17 | |
| 18 | The actual implementation is in _endpointscfg_impl, but we have to set |
| 19 | up import paths properly before we can import that module. |
| 20 | |
| 21 | See the docstring for endpoints._endpointscfg_impl for more |
| 22 | information about this script's capabilities. |
| 23 | """ |
| 24 | |
| 25 | import sys |
| 26 | |
| 27 | import _endpointscfg_setup # pylint: disable=unused-import |
| 28 | from endpoints._endpointscfg_impl import main |
| 29 | |
| 30 | if __name__ == '__main__': |
| 31 | main(sys.argv) |