X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=doc%2Fprerst2man.py;h=968722a1c750c620e24e1d5869269930bd3e5b96;hb=7fcd100a2f4fcc3762f2f73bcca3c30cc971b67a;hp=437dea99b6e520697daff811009b890edd7abb2d;hpb=c3d54c4b54959633f2aee5e57ae21db71af15dbd;p=notmuch diff --git a/doc/prerst2man.py b/doc/prerst2man.py index 437dea99..968722a1 100644 --- a/doc/prerst2man.py +++ b/doc/prerst2man.py @@ -10,7 +10,8 @@ outdir = argv[2] if not isdir(outdir): makedirs(outdir, 0o755) -execfile(sourcedir + "/conf.py") +with open(sourcedir + "/conf.py") as cf: + exec(cf.read()) def header(file, startdocname, command, description, authors, section):