Commits

Georg Brandl committed 1177915 Draft

Fixes #14215: copy magic yaml file to get a nice <title> for python.org/dev/peps/ index page

  • Participants
  • Parent commits 3e3f231

Comments (0)

Files changed (1)

File pep2pyramid.py

     # for PEP 0, copy body to parent directory as well
     if pepnum == '0000':
         shutil.copyfile(outpath, os.path.join(destDir, '..', 'body.html'))
+        # apparently we need the index.yml as well to generate <title> right
+        shutil.copyfile(os.path.join(destDir, 'index.yml'),
+                        os.path.join(destDir, '..', 'index.yml'))
     copy_aux_files(inpath, destDir)
     return outpath