From dea578b7fcfa42ec84d18b86618d8fd494840401 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 9 May 2008 17:01:48 +0000 Subject: [PATCH] exclude example-list.html from list of examples - this is getting fragile git-svn-id: http://svn.openlayers.org/trunk/openlayers@7126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tools/exampleparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/exampleparser.py b/tools/exampleparser.py index 28977c6fe7..981f0af6da 100755 --- a/tools/exampleparser.py +++ b/tools/exampleparser.py @@ -27,10 +27,10 @@ def getListOfOnlineExamples(baseUrl): def getListOfExamples(relPath): """ - returns list of .html filenames within a given path + returns list of .html filenames within a given path - excludes example-list.html """ examples = os.listdir(relPath) - examples = [example for example in examples if example.endswith('.html')] + examples = [example for example in examples if example.endswith('.html') and example != "example-list.html"] return examples