From 90a4efdfbf31f53ffb5a7e80fb7574b5287e5326 Mon Sep 17 00:00:00 2001 From: derrod Date: Thu, 2 Dec 2021 17:05:50 +0100 Subject: [PATCH] [core] Fix path expansion for macOS savegame variables --- legendary/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legendary/core.py b/legendary/core.py index c3c8e53..d1a350c 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -704,9 +704,9 @@ class LegendaryCore: }) elif sys_platform == 'darwin' and platform == 'Mac': path_vars.update({ - '{appdata}': os.path.expandvars('~/Library/Application Support'), - '{userdir}': os.path.expandvars('~/Documents'), - '{userlibrary}': os.path.expandvars('~/Library') + '{appdata}': os.path.expanduser('~/Library/Application Support'), + '{userdir}': os.path.expanduser('~/Documents'), + '{userlibrary}': os.path.expanduser('~/Library') }) else: # attempt to get WINE prefix from config