summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Selyutin <ghostmansd@gmail.com>2018-07-08 23:32:30 +0300
committerDmitry Selyutin <ghostmansd@gmail.com>2018-07-08 23:32:30 +0300
commiteef2b8c058c65251e76410bd339acc11d1917eeb (patch)
tree2578b3627a111f1f1fc8b2ae702cb92702781e00
parent1dc6d9fb836403b809e186e3c0f8b6cea1f2afc3 (diff)
downloadgnulib-python.tar.gz
gnulib-python.tar.bz2
pygnulib: fix "mention" section pathspython
-rwxr-xr-xpygnulib.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pygnulib.py b/pygnulib.py
index 8908558743..ae5556eab9 100755
--- a/pygnulib.py
+++ b/pygnulib.py
@@ -718,9 +718,8 @@ def import_hook(script, gnulib, namespace, explicit, verbosity, options, *args,
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()

Return to:

Send suggestions and report system problems to the System administrator.