* pygnulib/constants.py (joinpath): Document a limitation.
+2024-04-07 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool.py: Add comment.
+ * pygnulib/constants.py (joinpath): Document a limitation.
+
2024-04-07 Collin Funk <collin.funk1@gmail.com>
gnulib-tool.py: Don't allow path normalization to delete a variable.
def joinpath(head: str, *tail: str) -> str:
'''Join two or more pathname components, inserting '/' as needed. If any
component is an absolute path, all previous path components will be
- discarded.'''
+ discarded.
+ This function also replaces SUBDIR/../ with empty; therefore it is not
+ suitable when some of the pathname components use Makefile variables
+ such as '$(srcdir)'.'''
newtail = []
for item in tail:
newtail += [item]