mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-24 16:14:45 +00:00
try to read only existing default config files
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2551 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
d2a8764d18
commit
b6e146750d
1 changed files with 6 additions and 2 deletions
|
|
@ -229,9 +229,13 @@ class Configuration (dict):
|
|||
if not cfiles:
|
||||
# system wide config settings
|
||||
config_dir = _linkchecker_configdata.config_dir
|
||||
cfiles.append(normpath(os.path.join(config_dir, "linkcheckerrc")))
|
||||
path = normpath(os.path.join(config_dir, "linkcheckerrc"))
|
||||
if os.path.exists(path):
|
||||
cfiles.append(path)
|
||||
# per user config settings
|
||||
cfiles.append(normpath("~/.linkchecker/linkcheckerrc"))
|
||||
path = normpath("~/.linkchecker/linkcheckerrc")
|
||||
if os.path.exists(path):
|
||||
cfiles.append(path)
|
||||
self.read_config(cfiles)
|
||||
# re-init logger
|
||||
self['logger'] = self.logger_new('text')
|
||||
|
|
|
|||
Loading…
Reference in a new issue