Skip to content

Commit

Permalink
Fix ROOT version check
Browse files Browse the repository at this point in the history
  • Loading branch information
op3 committed Oct 9, 2020
1 parent f1b0089 commit 560f036
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hdtv/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@
def check_root_version():
import ROOT

if ROOT.__version__ in ["6.22/00", "6.22/02"]:
version = ROOT.gROOT.GetVersion()

if version in ["6.22/00", "6.22/02"]:
print(
f"Error: Unsupported ROOT version {ROOT.__version__} detected.\n"
f"Error: Unsupported ROOT version {version} detected.\n"
"ROOT 6.22/00 and 6.22/02 are not compatible with HDTV.\n"
"Please upgrade to ROOT 6.22/04 or later "
"or use a different major version.\n See README.md for more information.",
Expand Down

0 comments on commit 560f036

Please sign in to comment.