Fix problem with runsamples erroring on logging. Add in missing api-python-client-doc file.
This commit is contained in:
@@ -41,10 +41,10 @@ def main(argv):
|
||||
logging.getLogger().setLevel(getattr(logging, FLAGS.logging_level))
|
||||
|
||||
for dirname in os.listdir(FLAGS.sample_root):
|
||||
fulldirname = os.path.join(FLAGS.sample_root, dirname)
|
||||
if dirname in FLAGS.samples_to_skip:
|
||||
logging.debug('Skipping ' + fulldirname + ' (blacklist)')
|
||||
continue
|
||||
fulldirname = os.path.join(FLAGS.sample_root, dirname)
|
||||
filelist = os.listdir(fulldirname)
|
||||
if 'settings.py' in filelist and 'manage.py' in filelist:
|
||||
logging.info(fulldirname + ' [Django]')
|
||||
@@ -99,4 +99,3 @@ def main(argv):
|
||||
|
||||
if __name__ == '__main__':
|
||||
main(sys.argv)
|
||||
|
||||
|
||||
12
samples/api-python-client-doc/index.html
Normal file
12
samples/api-python-client-doc/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title> Google API Client for Python Documentation </title>
|
||||
</head>
|
||||
<body>
|
||||
<h1> Google API Client for Python Documentation </h1>
|
||||
{% for item in directory %}
|
||||
<p><a href="/{{ item.name }}/{{ item.version }}"><img src="{{ item.icons.x32 }}"/> {{ item.description }} </a></p>
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user