22 |
|
# -create -submit special case: first part # Fabio |
23 |
|
cachedPath = os.environ['PATH'] |
24 |
|
cachedPyPath = os.environ['PYTHONPATH'] |
25 |
< |
if '-create' in sys.argv: |
25 |
> |
### FEDE added -publish |
26 |
> |
if '-create' or '-publish' in sys.argv: |
27 |
|
reverseList.remove('PATH') |
28 |
|
reverseList.remove('PYTHONPATH') |
29 |
|
preserveList = preserveList + ['PATH', 'PYTHONPATH'] |
30 |
|
# |
31 |
|
# |
31 |
– |
|
32 |
|
# extract the env setting introduced by scram |
33 |
|
curDir = os.getcwd() |
34 |
|
os.chdir(str(os.environ['CMSSW_BASE'])+'/src') |
98 |
|
# reverse and export as AUXs both the PATH and the PYTHONPATH |
99 |
|
# this value will be used by crab.py whenever both -create and -submit are used |
100 |
|
# |
101 |
< |
if '-create' in sys.argv: |
101 |
> |
### FEDE added -publish |
102 |
> |
if '-create' or '-publish' in sys.argv: |
103 |
|
# PATH |
104 |
|
purgedList = [ i for i in cachedPath.split(':') if i not in pre_env['PATH'] ] |
105 |
|
purgedList = purgedList + pre_env['PATH'] |