summaryrefslogtreecommitdiff
path: root/update-error-constants.py
diff options
context:
space:
mode:
authorscoder <none@none>2006-06-02 12:46:09 +0200
committerscoder <none@none>2006-06-02 12:46:09 +0200
commit95e457be553cf0fa11b94e52c44bd67c9f18dd71 (patch)
tree3c558d3a1ddc93d258bcb74b1d99be3507479969 /update-error-constants.py
parent42699890f920cf53c4410a4158c68bb1a825fc81 (diff)
downloadpython-lxml-95e457be553cf0fa11b94e52c44bd67c9f18dd71.tar.gz
[svn r1382] changed cmd line of update-error-constants.py, check for HTML file before starting work
--HG-- branch : trunk
Diffstat (limited to 'update-error-constants.py')
-rw-r--r--update-error-constants.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/update-error-constants.py b/update-error-constants.py
index ac6449ce..2edff1b8 100644
--- a/update-error-constants.py
+++ b/update-error-constants.py
@@ -8,10 +8,11 @@ BUILD_DEF_FILE = os.path.join("src", "lxml", "xmlerror.pxd")
if len(sys.argv) < 2 or sys.argv[1].lower() in ('-h', '--help'):
print "This script generates the constants in file", BUILD_SOURCE_FILE
print "Call as"
- print sys.argv[0], "/path/to/libxml2-source-dir"
+ print sys.argv[0], "/path/to/libxml2-doc-dir"
sys.exit(len(sys.argv) > 1)
-HTML_FILE = os.path.join(sys.argv[1], 'doc', 'html', 'libxml-xmlerror.html')
+HTML_FILE = os.path.join(sys.argv[1], 'html', 'libxml-xmlerror.html')
+os.stat(HTML_FILE) # raise an error if we can't find it
sys.path.insert(0, 'src')
from lxml import etree