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:
@@ -27,10 +27,10 @@ def getListOfOnlineExamples(baseUrl):
|
|||||||
|
|
||||||
def getListOfExamples(relPath):
|
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 = 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
|
return examples
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user