11from basf2.core import basf2label, basf2copyright, basf2license, list_module_search_paths, LogPythonInterface
13from basf2
import conditions
23 eeeeeeee eeeeeeeeeeeeeeee
28 eeee eeeeeeeeeeeeeeeee
38 eeeeee eeeeeeeeeeeeeeeeeeeee
39 eeeeeeeeeeeeeeeeeeeeeeeeee
43 BB BB eeee ll ll eeee 22 22
44 BB BB ee ee ll ll ee ee 22 22
45 BBBBBBB eeeeeeee ll ll eeeeeeee 22 22
46 BB BB ee ll ll ee 22 22
47 BB BB ee ee ll ll ee ee 22 22
48 BBBBBBBB eeeee ll ll eeeee 2222222
52if LogPythonInterface.terminal_supports_colors():
54 color = CSI +
'93;44m'
60for line
in logo.splitlines():
61 print(color + line.ljust(48) + reset)
64print(basf2label.center(48))
65print(basf2copyright.center(48))
66print(basf2license.center(48))
67print((
'Release ' + get_release()).center(48))
68print((
'Version ' + get_version()).center(48))
71for var
in [
"RELEASE",
"RELEASE_DIR",
"LOCAL_DIR",
"SUBDIR",
"EXTERNALS_VERSION",
"ARCH"]:
72 name =
"BELLE2_" + var
73 print((name +
":").ljust(25), os.environ.get(name,
''))
75print(
'Default global tags:'.ljust(25), conditions.default_globaltags)
76print(
'Kernel version:'.ljust(25), os.uname()[2])
77python_version = sys.version_info[:3]
78print(
'Python version:'.ljust(25),
'.'.join(str(ver)
for ver
in python_version))
80 from ROOT
import gROOT
82 rootver = gROOT.GetVersion()
84 rootver =
'PyROOT broken, cannot get version!'
85print(
'ROOT version:'.ljust(25), rootver)
87print(
'basf2 module directories:'.ljust(25))
88for dirname
in list_module_search_paths():