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

Comparing COMP/CRAB/python/WorkSpace.py (file contents):
Revision 1.42 by slacapra, Thu May 19 09:15:55 2011 UTC vs.
Revision 1.43 by spiga, Mon Jul 4 16:57:45 2011 UTC

# Line 47 | Line 47 | class WorkSpace:
47          # Matteo change in order to ban only "data" in "CMSSW" dir and
48          # not crash when short path is given    
49          subpath = self._top_dir.split('CMSSW')
50 +        if len(subpath)!=1 and ("data" in subpath[-1].split("/")):
51 +            msg = 'Cannot run CRAB from "data" directory.\n'
52 +            msg += 'please change direcotry\n'
53 +            raise CrabException(msg)
54  
55          if not os.path.exists(self._top_dir):
56              try:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines