Skip to content

Commit 060f3c8

Browse files
authored
Fix parsing paths from config file. (#180)
1 parent a53512e commit 060f3c8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/source/changes.rst

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ all releases are available on `PyPI <https://pypi.org/project/pytask>`_ and
2424
about the number of successes, fails and other status.
2525
- :gh:`178` makes some stylistic changes like reducing tasks ids even more and dims the
2626
path part.
27+
- :gh:`180` fixes parsing relative paths from the configuration file.
2728

2829

2930
0.1.3 - 2021-11-30

src/_pytask/config.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ def pytask_configure(
9696

9797
# If paths are set in the configuration, process them.
9898
if config_from_file.get("paths"):
99-
paths_from_file = parse_value_or_multiline_option(config_from_file.get("paths"))
99+
paths_from_file = to_list(
100+
parse_value_or_multiline_option(config_from_file.get("paths"))
101+
)
100102
config_from_file["paths"] = [
101103
config["config"].parent.joinpath(p).resolve() for p in paths_from_file
102104
]

0 commit comments

Comments
 (0)