mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-08 08:30:59 +00:00
Expand filenames given with the --config options.
This commit is contained in:
parent
af6cb287d7
commit
8afc07fb2b
2 changed files with 4 additions and 2 deletions
|
|
@ -18,6 +18,7 @@ Fixes:
|
|||
to RFC2368. So the syntax error about missing email-addresses gets
|
||||
demoted to a warning.
|
||||
Closes: SF bug #2910588
|
||||
- cmdline: Expand tilde (~) in filenames given with the --config option.
|
||||
|
||||
5.1 "Let the right one in" (released 04.08.2009)
|
||||
|
||||
|
|
|
|||
|
|
@ -591,8 +591,9 @@ log.debug(LOG_CMDLINE, _("Python %(version)s on %(platform)s") % \
|
|||
try:
|
||||
files = []
|
||||
if options.configfile:
|
||||
if os.path.isfile(options.configfile):
|
||||
files.append(options.configfile)
|
||||
path = linkcheck.configuration.normpath(options.configfile)
|
||||
if os.path.isfile(path):
|
||||
files.append(path)
|
||||
else:
|
||||
log.warn(LOG_CMDLINE,
|
||||
_("Unreadable config file: %r"), options.configfile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue