Skip to content

Commit

Permalink
suffixes need to include the "."
Browse files Browse the repository at this point in the history
  • Loading branch information
kosack committed Dec 4, 2024
1 parent a1c69a7 commit 491c94d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctapipe/core/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def load_config_file(self, path: str | pathlib.Path) -> None:
with open(path, "rb") as infile:
config = Config(toml.load(infile))
self.update_config(config)
elif path.suffix in ["json", "py"]:
elif path.suffix in [".json", ".py"]:
# fall back to traitlets.config.Application's implementation. Note
# that if we don't specify the file suffixes here, traitlets seems
# to silently ignore unknown ones.
Expand Down

0 comments on commit 491c94d

Please sign in to comment.