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