in scripts/gen_dockerfile.py [0:0]
def get_data(name):
"""Return the contents of the named data resource
These templates are copied from the Google Cloud SDK at
google-cloud-sdk/platform/ext-runtime/python/data
and the two should be kept in sync.
Args:
name (str): Name of file, without directory
Returns:
str: Contents of data file
"""
filename = os.path.join(os.path.dirname(__file__), 'data', name)
with io.open(filename, 'r', encoding='utf8') as template_file:
return template_file.read()