Skip to content

Commit 7393941

Browse files
authored
Fix issue with resolving relative challenge paths during install (#189)
* Fix issue with resolving relative challenge paths during install * Fix lint
1 parent c5abdd4 commit 7393941

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ctfcli/cli/challenges.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def install(
578578
if isinstance(ignore, str):
579579
ignore = (ignore,)
580580

581-
config = Config()
581+
_config = Config()
582582
remote_challenges = Challenge.load_installed_challenges()
583583

584584
failed_installs = []
@@ -590,9 +590,7 @@ def install(
590590
challenge_instance["state"] = "hidden"
591591

592592
click.secho(
593-
f"Installing '{challenge_instance}' ("
594-
f"{challenge_instance.challenge_file_path.relative_to(config.project_path)}"
595-
f") ...",
593+
f"Installing '{challenge_instance}' ({challenge_instance.challenge_file_path}) ...",
596594
fg="blue",
597595
)
598596

0 commit comments

Comments
 (0)