Skip to content

Commit

Permalink
Merge pull request #8 from Garulf/fix-fallback-system-drive
Browse files Browse the repository at this point in the history
(MINOR) Fallback to C drive if not found in environ
  • Loading branch information
Garulf authored Sep 5, 2021
2 parents 6f2821d + 05b7151 commit 5ccf0b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/steam_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
import vdf
from flox import Flox

DEFAULT_DRIVE = "C:"
SYSTEM_DRIVE = os.environ.get("SYSTEMDRIVE", DEFAULT_DRIVE)
STEAM_FOLDER = os.path.join(
f"{os.environ['SYSTEMDRIVE']}\\", "Program Files (x86)", "Steam"
f"{SYSTEM_DRIVE}\\", "Program Files (x86)", "Steam"
)
LIBRARIES_CONFIG = os.path.join(STEAM_FOLDER, "config", "libraryfolders.vdf")
LIBRARIES_STEAMAPPS = os.path.join(STEAM_FOLDER, "steamapps", "libraryfolders.vdf")
Expand Down

0 comments on commit 5ccf0b5

Please sign in to comment.