ATLAS Offline Software
showReleaseNotes.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4 # @file showReleaseNotes.py
5 # @purpose Display important notes/announcments (if any) about the current release
6 # @author Will Buttinger
7 # @date April 2016
8 
9 
10 def main():
11  import os
12  #we don't use the 'from PathResolver import PathResolver' because that will force Gaudi ApplicationMgr to display
13  #Until we have a way to 'silently' start the applicationmgr, we will do it the 'bad' way
14  import cppyy
15  cppyy.loadDict('libPathResolver')
16  cppyy.loadDict('libPathResolverDict')
17  FindCalibFile = cppyy.gbl.PathResolverFindCalibFile
18  cppyy.gbl.PathResolverSetOutputLevel(6) #suppress all possible warnings/errors
19 
20  notesFile = FindCalibFile("dev/ReleaseNotes/%s/%s" % (os.environ['AtlasProject'],os.environ['AtlasVersion']))
21  if notesFile=="": return 0 #no notes to display
22 
23  with open(notesFile) as f:
24  print(f.read())
25 
26 
27 
28 
29 if __name__ == "__main__":
30  import sys
31  sys.exit(main())
python.PathResolver.FindCalibFile
FindCalibFile
Definition: PathResolver.py:11
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
Trk::open
@ open
Definition: BinningType.h:40
python.showReleaseNotes.main
def main()
Definition: showReleaseNotes.py:10