Skip to content

Commit 98bf2e2

Browse files
committed
Can't compare relative paths to absolute paths
1 parent d98ab55 commit 98bf2e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ctfcli/cli/challenges.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,8 @@ def sync(self, challenge: str = None, ignore: Union[str, Tuple[str]] = ()) -> in
673673

674674
click.secho(
675675
f"Syncing '{challenge_name}' ("
676-
f"{challenge_instance.challenge_file_path.relative_to(config.project_path)}"
676+
f"{challenge_instance.challenge_file_path.absolute()
677+
.relative_to(config.project_path)}"
677678
f") ...",
678679
fg="blue",
679680
)
@@ -748,7 +749,8 @@ def deploy(
748749

749750
click.secho(
750751
f"Deploying challenge service '{challenge_name}' "
751-
f"({challenge_instance.challenge_file_path.relative_to(config.project_path)}) "
752+
f"({challenge_instance.challenge_file_path.absolute()
753+
.relative_to(config.project_path)}) "
752754
f"with {deployment_handler.__class__.__name__} ...",
753755
fg="blue",
754756
)

0 commit comments

Comments
 (0)