Changeset e4f08bf for doc/user-guide/genhelp.py
- Timestamp:
- 2015-06-08T18:25:08Z (9 years ago)
- Children:
- 29ff5c2
- Parents:
- c720890 (diff), 61e7e02 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user-guide/genhelp.py
rc720890 re4f08bf 3 3 # Usage: python genhelp.py input.xml output.txt 4 4 # (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 5 8 6 9 # This program is free software; you can redistribute it and/or … … 20 23 21 24 25 import os 22 26 import re 23 27 import sys … … 222 226 return 223 227 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 224 231 txt = process_file(sys.argv[1]) 225 232 open(sys.argv[2], "w").write(txt)
Note: See TracChangeset
for help on using the changeset viewer.