dmwm / CRAB2

CRAB2
2 stars 11 forks source link

better handling of input args for multicrab #929

Closed ericvaandering closed 10 years ago

ericvaandering commented 10 years ago

Original Savannah ticket 102780 reported by belforte on Sat Oct 5 02:00:34 2013.

see https://hypernews.cern.ch/HyperNews/CMS/get/crabDevelopment/1686/2.html

ericvaandering commented 10 years ago

Comment by belforte on Sat Oct 5 03:16:28 2013

attach patch from StefanoL (n.b. no need to change crab.py)

(file #35510)

ericvaandering commented 10 years ago

Comment by belforte on Sat Oct 5 03:22:10 2013

so the suggested changes are:

belforte@lxplus414/StefanoLacaprara> diff multicrab.py .. 287,291c287,288 < if (len(options[o].split())>1): < cmd+='"'+str(o)+'='+str(options[o])+'" ' < else: < options[o] = ''.join(options[o].split())

< cmd+=str(o)+'='+str(options[o])+' '

> options[o] = ''.join(options[o].split()) > cmd+=str(o)+'='+str(options[o])+' ' belforte@lxplus414/StefanoLacaprara>

belforte@lxplus414/StefanoLacaprara> diff crab .. 38c38

< python $CRABPYTHON/crab.py "$@"

> python $CRABPYTHON/crab.py $* belforte@lxplus414/StefanoLacaprara>

changes committed:

/local/reps/CMSSW/COMP/CRAB/python/crab,v <-- crab new revision: 1.24; previous revision: 1.23

/local/reps/CMSSW/COMP/CRAB/python/multicrab.py,v <-- multicrab.py new revision: 1.34; previous revision: 1.33