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.17 by slacapra, Mon Feb 26 12:59:42 2007 UTC vs.
Revision 1.18 by slacapra, Thu May 10 13:52:05 2007 UTC

# Line 26 | Line 26 | class WorkSpace:
26          return
27  
28      def create(self):
29 +        if (string.split(self._top_dir,'/')[-2]=='data'):
30 +            msg = 'Cannot run CRAB from "data" directory.\n'
31 +            msg += 'please change direcotry\n'
32 +            raise CrabException(msg)
33 +
34 +        
35          if not os.path.exists(self._top_dir):
36              os.mkdir(self._top_dir)
37              pass

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines