ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/unfoldEnv.py
(Generate patch)

Comparing COMP/CRAB/python/unfoldEnv.py (file contents):
Revision 1.5 by farinafa, Wed Nov 7 13:42:11 2007 UTC vs.
Revision 1.6 by fanzago, Tue Nov 20 15:22:22 2007 UTC

# Line 22 | Line 22 | if 'BASH' in os.environ:
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')
# Line 98 | Line 98 | print drop_out_cmd + unfold_cmd
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']

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines