mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Make campaign's yaml suffix case-insensitive
This commit is contained in:
parent
4722a558b8
commit
a14bf6d1ba
@ -64,7 +64,7 @@ class Campaign:
|
||||
@classmethod
|
||||
def from_file(cls, path: Path) -> Campaign:
|
||||
with path.open() as campaign_file:
|
||||
if path.suffix == ".yaml":
|
||||
if path.suffix.lower() == ".yaml":
|
||||
data = yaml.safe_load(campaign_file)
|
||||
else:
|
||||
data = json.load(campaign_file)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user