提交 6fae1fc7 authored 作者: Frederic Bastien's avatar Frederic Bastien

make docgen.py return to current directory at the end of the script.

上级 3d82403c
......@@ -45,6 +45,7 @@ if __name__ == '__main__':
files = None
if len(args) != 0:
files = [os.path.abspath(f) for f in args]
currentdir = os.getcwd()
mkdir(outdir)
os.chdir(outdir)
......@@ -91,3 +92,5 @@ if __name__ == '__main__':
mkdir("doc")
sys.path[0:0] = [os.path.join(throot, 'doc')]
call_sphinx('doctest', '.')
# To go back to the original current directory.
os.chdir(currentdir)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论