namespace = {}
figure_basename = os.path.join("fig", os.path.splitext(script)[0])
print(script)
exec(open(script).read(), namespace)
plt.close("all")
del namespace
if use_xvfb:
After Change
EG_SRC_DIR = op.join(DOC_PATH, "examples")
// Work in examples directory
os.chdir(op.join(DOC_PATH, "examples_built"))
if not os.getcwd().endswith(op.join("doc", "examples_built")):
raise OSError("This must be run from the doc directory")