mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[core] Apply expanduser to config values as well
This commit is contained in:
parent
39f0d4c831
commit
59f2ebb211
|
@ -716,7 +716,7 @@ class LegendaryCore:
|
||||||
return results
|
return results
|
||||||
|
|
||||||
def get_default_install_dir(self):
|
def get_default_install_dir(self):
|
||||||
return self.lgd.config.get('Legendary', 'install_dir', fallback=os.path.expanduser('~/legendary'))
|
return os.path.expanduser(self.lgd.config.get('Legendary', 'install_dir', fallback='~/legendary'))
|
||||||
|
|
||||||
def install_game(self, installed_game: InstalledGame) -> dict: # todo class for result?
|
def install_game(self, installed_game: InstalledGame) -> dict: # todo class for result?
|
||||||
"""Save game metadata and info to mark it "installed" and also show the user the prerequisites"""
|
"""Save game metadata and info to mark it "installed" and also show the user the prerequisites"""
|
||||||
|
|
Loading…
Reference in a new issue