freebsd-ports/www/py-google-api-python-client/files/patch-runsamples.py
Nicola Vitale 9fe53cfba2 - Update to 1.0.c2
- Add patch files/patch-runsamples
- Convert to the new options framework
- Add security/py-openssl to RUN_DEPENDS
  when option WEBTEST is on
2012-08-15 20:08:56 +00:00

11 lines
476 B
Python

--- ./runsamples.py.orig 2012-08-15 14:44:29.000000000 +0200
+++ ./runsamples.py 2012-08-15 14:44:45.000000000 +0200
@@ -41,6 +41,8 @@
logging.getLogger().setLevel(getattr(logging, FLAGS.logging_level))
for dirname in os.listdir(FLAGS.sample_root):
+ if not os.path.isdir(dirname):
+ continue
fulldirname = os.path.join(FLAGS.sample_root, dirname)
if dirname in FLAGS.samples_to_skip:
logging.debug('Skipping ' + fulldirname + ' (blacklist)')