# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |