Skip to content
Snippets Groups Projects
Unverified Commit 9ad4f473 authored by Stefan Wunsch's avatar Stefan Wunsch Committed by GitHub
Browse files

[Doc] Fix making images for tutorials (#5183)

parent 475bb074
No related branches found
No related tags found
Loading
......@@ -12,7 +12,7 @@ def makeimage(MacroName, ImageName, OutDir, cp, py, batch):
if batch:
ROOT.gROOT.SetBatch(1)
if py: exec(compile(open(MacroName, "rb").read(), MacroName, 'exec'))
if py: exec(open(MacroName).read(), globals())
else: ROOT.gInterpreter.ProcessLine(".x " + MacroName)
if cp:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment