From a26837ae0cc6bff8b1ea055c69e96d49b85acee9 Mon Sep 17 00:00:00 2001 From: Chandler Newby Date: Thu, 6 Nov 2025 17:08:54 -0700 Subject: [PATCH] Can't compare relative paths to absolute paths --- ctfcli/cli/challenges.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctfcli/cli/challenges.py b/ctfcli/cli/challenges.py index 70fe113..6885e23 100644 --- a/ctfcli/cli/challenges.py +++ b/ctfcli/cli/challenges.py @@ -673,7 +673,7 @@ def sync(self, challenge: str = None, ignore: Union[str, Tuple[str]] = ()) -> in click.secho( f"Syncing '{challenge_name}' (" - f"{challenge_instance.challenge_file_path.relative_to(config.project_path)}" + f"{challenge_instance.challenge_file_path.absolute().relative_to(config.project_path)}" f") ...", fg="blue", ) @@ -748,7 +748,7 @@ def deploy( click.secho( f"Deploying challenge service '{challenge_name}' " - f"({challenge_instance.challenge_file_path.relative_to(config.project_path)}) " + f"({challenge_instance.challenge_file_path.absolute().relative_to(config.project_path)}) " f"with {deployment_handler.__class__.__name__} ...", fg="blue", )