From e12b3e67b10b3615b28362c7baa6bb4bcdf7d927 Mon Sep 17 00:00:00 2001 From: vg Date: Fri, 24 May 2024 16:54:07 +0200 Subject: git-sync on seele --- gamechestcli/__main__.py | 3 +++ gamechestcli/gamechest/cliactions/run.py | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gamechestcli/__main__.py b/gamechestcli/__main__.py index 73d5bab..8452b99 100755 --- a/gamechestcli/__main__.py +++ b/gamechestcli/__main__.py @@ -9,6 +9,9 @@ Usage: gamechest install gamechest list [--installed|--not-installed] gamechest showconfig +Options: + --profile_id=, -p + use profile instead of the default one. ''' import sys diff --git a/gamechestcli/gamechest/cliactions/run.py b/gamechestcli/gamechest/cliactions/run.py index cf5ac43..1c55cc4 100644 --- a/gamechestcli/gamechest/cliactions/run.py +++ b/gamechestcli/gamechest/cliactions/run.py @@ -1,3 +1,4 @@ +import os import subprocess import sys from pathlib import Path @@ -25,7 +26,7 @@ def run_game(game_db, profile_id, game_info): try: profile_lockdir.mkdir(parents=True, exist_ok=False) except FileExistsError: - print('ERROR: profile is already locked, {profile_lockdir}', + print(f'ERROR: profile is already locked, {profile_lockdir}', file=sys.stderr) sys.exit(1) try: @@ -40,7 +41,7 @@ def run_game(game_db, profile_id, game_info): ) finally: profile_lockdir.rmdir() - print('INFO: {profile_lockdir} removed') + print(f'INFO: {profile_lockdir} removed') def run(game_id, profile_id): -- cgit v1.2.3