Skip to content

Commit

Permalink
Attempt to fix pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
koplo199 committed Oct 2, 2023
1 parent 372235f commit dc6301b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bottles/backend/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from functools import lru_cache
from pathlib import Path
from typing import Dict
from bottles.backend.utils import json
from bottles.backend.utils import yaml, json

@lru_cache
class Paths:
Expand Down Expand Up @@ -79,7 +79,9 @@ class TrdyPaths:
mangohud_available = shutil.which("mangohud") or False
obs_vkc_available = shutil.which("obs-vkcapture") or False
vmtouch_available = shutil.which("vmtouch") or False
base_version = json.load(open("/app/manifest.json")).get("base-version","").removeprefix("stable-")
base_version = ""
if os.path.exists("/app/manifest.json"):
base_version = json.load(open("/app/manifest.json")).get("base-version","").removeprefix("stable-")

# encoding detection correction, following windows defaults
locale_encodings: Dict[str, str] = {
Expand Down

0 comments on commit dc6301b

Please sign in to comment.