# HG changeset patch # User Dmitry Selyutin # Date 1531081950 -10800 # Node ID 5466b38e0354b8ba3491950a24bb4119ca957238 # Parent d7bdd3a55a7930e8321ac7e9821d25791857bce4 pygnulib: fix "mention" section paths diff -r d7bdd3a55a79 -r 5466b38e0354 pygnulib.py --- a/pygnulib.py Sun Jul 08 23:20:47 2018 +0300 +++ b/pygnulib.py Sun Jul 08 23:32:30 2018 +0300 @@ -718,9 +718,8 @@ fmt = " - \"include {makefile_name}\" from within \"{tests_base}/Makefile.am\"," print(fmt.format(**config), file=sys.stdout) for (directory, key, value) in mkedits: - if directory != ".": - directory += os.path.sep - print(f" - mention \"{value}\" in {key} in {directory}Makefile.am,", file=sys.stdout) + path = os.path.normpath(os.path.join(directory, "Makefile.am")) + print(f" - mention \"{value}\" in {key} in {path},", file=sys.stdout) position_early_after = "AC_PROG_CC" with vfs_iostream(project, config.ac_file, "rb", "UTF-8") as stream: contents = stream.read()