Skip to content

Commit

Permalink
Fix bug where, if tims2rescore enabled, the default config always ove…
Browse files Browse the repository at this point in the history
…rwrote user config
  • Loading branch information
RalfG committed Aug 14, 2024
1 parent 4215f8d commit f254a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ms2rescore/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,12 @@ def main(tims=False):
cli_args = parser.parse_args()

configurations = []
if cli_args.config_file:
configurations.append(cli_args.config_file)
if tims:
configurations.append(
json.load(importlib.resources.open_text(package_data, "config_default_tims.json"))
)
if cli_args.config_file:
configurations.append(cli_args.config_file)
configurations.append(cli_args)

try:
Expand Down

0 comments on commit f254a21

Please sign in to comment.