Skip to content

Commit

Permalink
CMSCommonData: use python3 in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jul 13, 2021
1 parent 29db216 commit 5101be0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Geometry/CMSCommonData/test/run_DOMCount.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from FWCore.ParameterSet.pfnInPath import pfnInPath
Expand Down
2 changes: 1 addition & 1 deletion Geometry/CMSCommonData/test/run_DOMCount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cfiFiles="${cfiFiles} Geometry/CMSCommonData/cmsExtendedGeometryXML_cfi"
cfiFiles="${cfiFiles} Geometry/CMSCommonData/cmsExtendedGeometryZeroMaterialXML_cfi"

# automatically retrieve active phase 2 geometries
read -a DETS <<< $(python -c 'from Configuration.Geometry.dict2026Geometry import detectorVersionDict; print " ".join(sorted([x[1] for x in detectorVersionDict.items()]))')
read -a DETS <<< $(python3 -c 'from Configuration.Geometry.dict2026Geometry import detectorVersionDict; print " ".join(sorted([x[1] for x in detectorVersionDict.items()]))')
for DET in ${DETS[@]}; do
cfiFiles="${cfiFiles} Geometry/CMSCommonData/cmsExtendedGeometry2026${DET}XML_cfi"
done
Expand Down

0 comments on commit 5101be0

Please sign in to comment.