def get_problem_root(problem_name, absolute=False):
"""
Installation location for a given problem.
Args:
problem_name: the problem name.
absolute: should return an absolute path.
Returns:
The tentative installation location.
"""
problem_root = join(PROBLEM_ROOT, sanitize_name(problem_name))
assert problem_root.startswith(sep)
if absolute:
return problem_root
return problem_root[len(sep):]
评论列表
文章目录