- Timestamp:
- Sep 22, 2017, 6:05:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r13940 r13984 33 33 34 34 SVN = filter(os.path.isfile, ('/usr/local/bin/svn', '/usr/bin/svn'))[0] 35 SVNVERSION = filter(os.path.isfile, ('/usr/local/bin/svnversion', '/usr/bin/svnversion'))[0] 35 36 36 37 import argparse … … 372 373 def generate_title(nodelist): 373 374 """ Main overview page """ 374 items = {'root' : "." } 375 items = { \ 376 'root' : ".", 377 'version' : subprocess.Popen([SVNVERSION, "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0] 378 } 375 379 def fl(spaces, line): 376 380 return (' ' * spaces) + line + '\n' … … 394 398 </form> 395 399 <table> 396 <caption><h3>Wireless Leiden Configurator </h3></caption>400 <caption><h3>Wireless Leiden Configurator - Revision %(version)s</h3></caption> 397 401 """ % items 398 402
Note:
See TracChangeset
for help on using the changeset viewer.