diff options
Diffstat (limited to 'gamechestcli/gamechest/cliactions/install.py')
-rw-r--r-- | gamechestcli/gamechest/cliactions/install.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gamechestcli/gamechest/cliactions/install.py b/gamechestcli/gamechest/cliactions/install.py index 8584d35..508dd48 100644 --- a/gamechestcli/gamechest/cliactions/install.py +++ b/gamechestcli/gamechest/cliactions/install.py @@ -1,14 +1,15 @@ import functools -from .. import gamedb, paths, processor +from .. import gamedb, processor +from ..gameconfig import config from ..runners.install import Install from ..statusdb import StatusDB def install_game(status_db, game_info): - remote_basedir = paths.get_remote_basedir() + remote_basedir = config.get_remote_basedir() source = f'{remote_basedir}/{game_info["package_name"]}' - dest = paths.get_games_install_basedir() / game_info['id'] + dest = config.get_games_install_basedir() / game_info['id'] dest.mkdir(parents=True, exist_ok=True) title = 'Installing game...' task = functools.partial(Install, source, dest) |