Skip to content

Commit

Permalink
warn users of crab-dev. Fix #5134 (#5136)
Browse files Browse the repository at this point in the history
* warn users of crab-dev. Fix #5134

* better message
  • Loading branch information
belforte authored Dec 10, 2021
1 parent b610228 commit c5ddf66
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/crab.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from __future__ import print_function
from __future__ import division
import sys
import os
if sys.version_info < (2, 6):
print('\nError: using a version of python < 2.6. Exiting...\n')
sys.exit()
Expand All @@ -19,6 +20,12 @@
print('pycurl version is: %s\n' % pycurl.version)
sys.exit()

if 'crab-dev' in __file__:
print('BEWARE: this is the development version of CRAB Client.\nBe sure to have a good reason for using it\n')
# following is temporary, to be removed in January/February 2022
if os.getenv('CMSSW_VERSION').split('_')[1] == '12':
print('NOTE: THERE IS NO NEED ANYMORE TO USE crab-dev FOR CMSSW_12. GO BACK TO PLAIN crab\n')

import logging
import logging.handlers
import re
Expand Down

0 comments on commit c5ddf66

Please sign in to comment.