mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-10 07:34:44 +00:00
Check for help files.
This commit is contained in:
parent
db3364c8af
commit
a7c1cdd6f6
2 changed files with 6 additions and 2 deletions
|
|
@ -10,6 +10,8 @@ Changes:
|
|||
- checking: Remove the url-content-duplicate warning.
|
||||
- cmdline: Replace argument parsing. No changes in functionality, only
|
||||
the help text will be formatted different.
|
||||
- gui: Check early if help files are not found.
|
||||
Closes: GH bug #437
|
||||
|
||||
Fixes:
|
||||
- checking: Apache Coyote (the HTTP server of Tomcat) sends the wrong
|
||||
|
|
|
|||
|
|
@ -96,7 +96,8 @@ def get_share_file (devel_dir, filename):
|
|||
@param filename: filename to search for
|
||||
@ptype filename: string
|
||||
@return: the found filename or None
|
||||
@rtype: string or None
|
||||
@rtype: string
|
||||
@raises: ValueError if not found
|
||||
"""
|
||||
paths = [
|
||||
# when developing
|
||||
|
|
@ -112,7 +113,8 @@ def get_share_file (devel_dir, filename):
|
|||
if os.path.isfile(fullpath):
|
||||
return fullpath
|
||||
# not found
|
||||
return None
|
||||
msg = "%s not found in %s; check your installation" % (filename, paths)
|
||||
raise ValueError(msg)
|
||||
|
||||
|
||||
# dynamic options
|
||||
|
|
|
|||
Loading…
Reference in a new issue