OpenLayers OpenLayers

Changeset 7126

Show
Ignore:
Timestamp:
05/09/08 13:01:48 (3 months ago)
Author:
tschaub
Message:

exclude example-list.html from list of examples - this is getting fragile

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tools/exampleparser.py

    r7111 r7126  
    2828def getListOfExamples(relPath): 
    2929    """ 
    30     returns list of .html filenames within a given path 
     30    returns list of .html filenames within a given path - excludes example-list.html 
    3131    """ 
    3232    examples = os.listdir(relPath) 
    33     examples = [example for example in examples if example.endswith('.html')
     33    examples = [example for example in examples if example.endswith('.html') and example != "example-list.html"
    3434    return examples 
    3535