Skip to content

Commit

Permalink
Pass filename to the buildout Checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
janjaapdriessen committed Apr 9, 2020
1 parent 577e530 commit cc1fb79
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/z3c/checkversions/main.py
Expand Up @@ -72,16 +72,13 @@ def main():
parser.error(
'The blacklist file "%s" does not exist!' % options.blacklist)

buildoutcfg = False
if len(args) == 1:
buildoutcfg = args[0]

kw = {}
if options.index is not None:
kw['index_url'] = options.index

if buildoutcfg:
if len(args) == 1:
from . import buildout
kw['filename'] = args[0]
factory = buildout.Checker
else:
from . import installed
Expand Down

0 comments on commit cc1fb79

Please sign in to comment.