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
This commit is contained in:
Tim Schaub
2008-05-09 17:01:48 +00:00
parent 92c092c598
commit dea578b7fc

View File

@@ -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