mirror of
https://github.com/derrod/legendary.git
synced 2025-01-10 14:25:28 +00:00
[core] Fix path expansion for macOS savegame variables
This commit is contained in:
parent
32e9ef1cd3
commit
90a4efdfbf
|
@ -704,9 +704,9 @@ class LegendaryCore:
|
||||||
})
|
})
|
||||||
elif sys_platform == 'darwin' and platform == 'Mac':
|
elif sys_platform == 'darwin' and platform == 'Mac':
|
||||||
path_vars.update({
|
path_vars.update({
|
||||||
'{appdata}': os.path.expandvars('~/Library/Application Support'),
|
'{appdata}': os.path.expanduser('~/Library/Application Support'),
|
||||||
'{userdir}': os.path.expandvars('~/Documents'),
|
'{userdir}': os.path.expanduser('~/Documents'),
|
||||||
'{userlibrary}': os.path.expandvars('~/Library')
|
'{userlibrary}': os.path.expanduser('~/Library')
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
# attempt to get WINE prefix from config
|
# attempt to get WINE prefix from config
|
||||||
|
|
Loading…
Reference in a new issue