lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

list of lilypond manuals in python


From: Graham Percival
Subject: list of lilypond manuals in python
Date: Fri, 18 Dec 2009 17:03:24 +0000

If anybody's working on a buildscript and wants a list of lilypond
manuals, here you go:

myDir = os.path.dirname(sys.argv[0])
# use two abspaths to work around some windows python bug
topDir = os.path.join(os.path.abspath(myDir)+os.sep+'..'+os.sep+'..'+os.sep)
topDir = os.path.abspath( topDir )

# TODO: this might be useful for other scripts; can we make it available?
manuals = map(lambda x: os.path.splitext(x)[0],
              map(os.path.basename,
                  glob.glob(os.path.join(topDir,'Documentation', '*.te??'))))
manuals.append('internals')
print manuals


Cheers,
- Graham




reply via email to

[Prev in Thread] Current Thread [Next in Thread]