[core] Apply expanduser to config values as well

This commit is contained in:
derrod 2020-05-18 10:59:38 +02:00
parent 39f0d4c831
commit 59f2ebb211

View file

@ -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"""