Skip to content

Commit

Permalink
use default file if found
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaime-Iglesias committed Feb 11, 2022
1 parent 570a622 commit 8d7ca33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions slither/utils/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def read_config_file(args):
# Check wether the default config file is present
if not os.path.exists("slither.config.json"):
return
# The default file exists, use it
else:
args.config_file = "slither.config.json"

if os.path.isfile(args.config_file):
try:
Expand Down

0 comments on commit 8d7ca33

Please sign in to comment.