Make some paths cross-platform compatible (#1543)

* Make some paths cross-platform compatible

* Fix lint error for Path
This commit is contained in:
Magnus Wolffelt
2021-08-14 21:45:23 +02:00
committed by GitHub
parent b5b0d82a1a
commit 103675e5bb
3 changed files with 10 additions and 9 deletions

View File

@@ -104,7 +104,7 @@ class Campaign:
def load_campaigns() -> List[Campaign]:
campaign_dir = Path("resources\\campaigns")
campaign_dir = Path("resources/campaigns")
campaigns = []
for path in campaign_dir.glob("*.json"):
try: