Skip to content

Commit

Permalink
constants: Don't use os.path.join when building Steam POSSIBLE_INSTAL…
Browse files Browse the repository at this point in the history
…L_LOCATIONS

Fixes a strange recusion depth crash.
  • Loading branch information
sonic2kk committed Feb 24, 2024
1 parent 6423f52 commit af05168
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pupgui2/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
# We catch this later on in util#is_valid_launcher_installation though
POSSIBLE_INSTALL_LOCATIONS = [
{
'install_dir': f'{os.path.join(_STEAM_ROOT, "compatibility_tools.d")}',
'install_dir': f'{_STEAM_ROOT}/compatibilitytools.d/',
'display_name': 'Steam',
'launcher': 'steam',
'type': 'native',
'icon': 'steam',
'vdf_dir': f'{os.path.join(_STEAM_ROOT, "config")}'
} for _STEAM_ROOT in _POSSIBLE_STEAM_ROOTS if os.path.exists(os.path.realpath(_STEAM_ROOT))
'vdf_dir': f'{_STEAM_ROOT}/config'
} for _STEAM_ROOT in _POSSIBLE_STEAM_ROOTS if os.path.exists(_STEAM_ROOT)
]

# Possible install locations for all other launchers, ensuring Steam paths are at the top of the list
Expand Down

0 comments on commit af05168

Please sign in to comment.