Skip to content

Commit bcb687b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d56861e commit bcb687b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pharaoh/templating/second_level/template_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def join_path(self, template: str, parent: str) -> str:
282282
# In this case under Python 3.7, the following parent.is_dir() is failing because os.stat
283283
# does not allow <> in the file path, Python 3.9 does, apparently.
284284
# So we split off the suffix after <> (which would be done anyway using the "parent.parent" statement).
285-
parent = parent.split("<>")[0]
285+
parent = parent.split("<>", maxsplit=1)[0]
286286
parent_path = Path(parent)
287287
if not parent_path.is_dir():
288288
parent_path = parent_path.parent

0 commit comments

Comments
 (0)