call Config.locate_bin_from_steam_config in cli setup
This commit is contained in:
parent
83684128f6
commit
524ec6c786
|
@ -43,8 +43,21 @@ def cli_locate_bin(ctx, directory: str = None):
|
|||
def cli_setup(ctx, nuke: bool = False):
|
||||
"Setup the WINE prefix for Project Torque"
|
||||
|
||||
click.echo("Setting up WINE prefix")
|
||||
ctx.obj.setup(nuke = nuke)
|
||||
click.echo("WINE prefix for Project Torque setup :3")
|
||||
|
||||
if not ctx.obj.binpath.exists():
|
||||
click.echo("Finding path to Project Torque binary")
|
||||
|
||||
try:
|
||||
ctx.obj.locate_bin_from_steam_config()
|
||||
ctx.obj.save()
|
||||
|
||||
except FileNotFoundError as e:
|
||||
click.echo(str(e))
|
||||
return
|
||||
|
||||
click.echo("Launcher setup finished :3")
|
||||
|
||||
|
||||
@cli.command("run", context_settings = {"allow_extra_args": True})
|
||||
|
|
Loading…
Reference in a new issue