Fix problem with runsamples erroring on logging. Add in missing api-python-client-doc file.
diff --git a/runsamples.py b/runsamples.py
index ef559ee..a526f71 100644
--- a/runsamples.py
+++ b/runsamples.py
@@ -41,10 +41,10 @@
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 @@
if __name__ == '__main__':
main(sys.argv)
-
diff --git a/samples/api-python-client-doc/index.html b/samples/api-python-client-doc/index.html
new file mode 100644
index 0000000..a1f0dd0
--- /dev/null
+++ b/samples/api-python-client-doc/index.html
@@ -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>