Skip to content

Commit 7d1eccf

Browse files
committed
make call_cwd absolute
1 parent f4af901 commit 7d1eccf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676

7777

7878
# Changes the working directory to the root of the contest.
79-
# Returns the "level" of the current command (either 'problem' or 'problemset')
80-
# and, if `level == 'problem'`, the directory of the problem.
79+
# sets the "level" of the current command (either 'problem' or 'problemset')
80+
# and, if `level == 'problem'` returns the directory of the problem.
8181
def change_directory() -> Optional[Path]:
8282
problem_dir: Optional[Path] = None
8383
config.level = "problemset"
@@ -1047,7 +1047,7 @@ def run_parsed_arguments(args: argparse.Namespace, personal_config: bool = True)
10471047
missing_args = config.set_default_args()
10481048

10491049
# cd to contest directory
1050-
call_cwd = Path().cwd()
1050+
call_cwd = Path().cwd().absolute()
10511051
problem_dir = change_directory()
10521052
level = config.level
10531053
contest_name = Path().cwd().name

0 commit comments

Comments
 (0)