We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9640dc9 commit 2ad5958Copy full SHA for 2ad5958
1 file changed
copier/_user_data.py
@@ -577,7 +577,8 @@ def load_answersfile_data(
577
) -> AnyByStrDict:
578
"""Load answers data from a `$dst_path/$answers_file` file if it exists."""
579
try:
580
- with Path(dst_path, answers_file).open("rb") as fd:
+ answers_path = Path(dst_path, answers_file).resolve()
581
+ with answers_path.open("rb") as fd:
582
return yaml.safe_load(fd)
583
except (FileNotFoundError, IsADirectoryError):
584
if warn_on_missing:
0 commit comments