Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/user-guide/genhelp.py

    rad678a4 r1cef55f  
    33# Usage: python genhelp.py input.xml output.txt
    44# (Both python2 (>=2.5) or python3 work)
     5#
     6# The shebang above isn't used, set the PYTHON environment variable
     7# before running ./configure instead
    58
    69# This program is free software; you can redistribute it and/or
     
    2023
    2124
     25import os
    2226import re
    2327import sys
     
    222226        return
    223227
     228    # ensure that we really are in the same directory as the input file
     229    os.chdir(os.path.dirname(os.path.abspath(sys.argv[1])))
     230
    224231    txt = process_file(sys.argv[1])
    225232    open(sys.argv[2], "w").write(txt)
Note: See TracChangeset for help on using the changeset viewer.