Skip to content

Commit

Permalink
Allow .yaml extension for YAML config files
Browse files Browse the repository at this point in the history
The recommended file extension for YAML files is `.yaml`.
Both `.yaml` and `.yml` are valid extensions for YAML files.
  • Loading branch information
fabcor-maxiv committed Aug 16, 2024
1 parent 1dcd5a4 commit f12175e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxcubecore/HardwareRepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def load_from_yaml(configuration_file, role, _container=None, _table=None):
msg0 = "Done loading contents"
for role1, config_file in _objects.items():
fname, fext = os.path.splitext(config_file)
if fext == ".yml":
if fext in (".yaml", ".yml"):
load_from_yaml(
config_file, role=role1, _container=result, _table=_table
)
Expand Down

0 comments on commit f12175e

Please sign in to comment.