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):
outfile.write("".join(lines))
outfile.close()
- os.system('set -x; rst2man {0} {1}/{2}.{3}'
- .format(filename, outdir, page[0],page[4]))
+ system('set -x; rst2man {0} {1}/{2}.{3}'
+ .format(filename, outdir, page[0], page[4]))