Belle II Software
release-05-01-25
version.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
import
os
5
6
version =
''
7
try
:
8
from
ROOT
import
Belle2
9
import
ROOT
10
ROOT.gSystem.Load(
'libframework_io'
)
11
ROOT.gROOT.LoadMacro(
Belle2.FileSystem.findFile
(
"include/framework/io/RootIOUtilities.h"
))
12
version =
Belle2.RootIOUtilities.getCommitID
()
13
except
AttributeError:
14
pass
15
16
release = (os.environ.get(
'BELLE2_RELEASE'
,
'unknown'
))
17
18
if
__name__ ==
"__main__"
:
19
print(
'BASF2, Version: %s (Release: %s)'
% (version, release))
Belle2::RootIOUtilities::getCommitID
std::string getCommitID()
Return git SHA1 hashes taking into account local & central release.
Definition:
RootIOUtilities.cc:200
Belle2::FileSystem::findFile
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...
Definition:
FileSystem.cc:147
framework
scripts
basf2
version.py
Generated on Fri Nov 5 2021 03:52:45 for Belle II Software by
1.8.17