Skip to content

Commit 1ef83e1

Browse files
committed
Fix problem with runsamples erroring on logging. Add in missing api-python-client-doc file.
1 parent c968a57 commit 1ef83e1

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

runsamples.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def main(argv):
4141
logging.getLogger().setLevel(getattr(logging, FLAGS.logging_level))
4242

4343
for dirname in os.listdir(FLAGS.sample_root):
44+
fulldirname = os.path.join(FLAGS.sample_root, dirname)
4445
if dirname in FLAGS.samples_to_skip:
4546
logging.debug('Skipping ' + fulldirname + ' (blacklist)')
4647
continue
47-
fulldirname = os.path.join(FLAGS.sample_root, dirname)
4848
filelist = os.listdir(fulldirname)
4949
if 'settings.py' in filelist and 'manage.py' in filelist:
5050
logging.info(fulldirname + ' [Django]')
@@ -99,4 +99,3 @@ def main(argv):
9999

100100
if __name__ == '__main__':
101101
main(sys.argv)
102-
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE HTML>
2+
<html>
3+
<head>
4+
<title> Google API Client for Python Documentation </title>
5+
</head>
6+
<body>
7+
<h1> Google API Client for Python Documentation </h1>
8+
{% for item in directory %}
9+
<p><a href="/{{ item.name }}/{{ item.version }}"><img src="{{ item.icons.x32 }}"/> {{ item.description }} </a></p>
10+
{% endfor %}
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)