mkedanlzr in slc6 CMSSW_7_6_7 image
mkedanlzr
is a nice script to have for getting started with CMS open data. In order for it to work in a slc6 CMSSW_7_6_7 container, following changes would be needed:
- in
/opt/cms/slc6_amd64_gcc493/cms/cmssw/CMSSW_7_6_7/python/FWCore/Skeletons/pkg.py
:- add
import pwd
- replace
os.getlogin()
withpwd.getpwuid(os.geteuid())[0]
- add
- in
/opt/cms/slc6_amd64_gcc493/cms/cmssw/CMSSW_7_6_7/python/FWCore/Skeletons/utils.py
:- similarly, replace
os.getlogin()
withpwd.getpwuid(os.geteuid())[0]
- similarly, replace
(see https://github.com/cernopendata/data-curation/issues/114)
Could that be done in the image build? It is a bit awkward to ask users to make this change, in particular, as this comes quite early in the learning path.