4def ResolveTag(folder, tag):
5 theTag=tag
6 if tag.upper() in ['NEXT', 'CURRENT']:
7 import sys
8 if '/afs/cern.ch/user/a/atlcond/utils/python/' not in sys.path:
9 sys.path.append('/afs/cern.ch/user/a/atlcond/utils/python/')
10 from AtlCoolBKLib import resolveAlias
11 if tag.upper()=="NEXT":
12 theTag=resolveAlias.getNext()
13 else:
14 theTag=resolveAlias.getCurrent()
15 theTag=theTag.replace('*', 'ST')
16 print (tag, "resolves to", theTag)
17 folder_tag=folder.resolveTag(theTag)
18 if folder_tag!=theTag:
19 print (theTag, "resolves to", folder_tag)
20 return folder_tag
21