diff --git a/run_pylint.sh b/run_pylint.sh index b474549f3c0aafdfa30e26c6cb328b79dfb96f4d..75b71894e38b5e4b5ab782e49f01b4189840b1bc 100755 --- a/run_pylint.sh +++ b/run_pylint.sh @@ -7,9 +7,12 @@ fi # The version of pylint available from LCG *views* does not work: # https://sft.its.cern.ch/jira/browse/SPI-1052 -# /cvmfs/sft.cern.ch/lcg/views/$TDAQ_LCG_RELEASE/$CMTCONFIG/bin/pylint $(find . -name '*.py' -a -not -name config.py) +#/cvmfs/sft.cern.ch/lcg/views/$TDAQ_LCG_RELEASE/$CMTCONFIG/bin/pylint $(find . -name '*.py' -a -not -name config.py) +# Don't ask me why but re-importing LCG view env does the job +source /cvmfs/sft.cern.ch/lcg/views/$TDAQ_LCG_RELEASE/$CMTCONFIG/setup.sh +pylint $(find . -name '*.py' -a -not -name config.py) # This gets the latest version of pylint from LCG *releases* for the LCG version # associated with the sources TDAQ release -PYLINT_LATEST_VERSION=`ls -t1 /cvmfs/sft.cern.ch/lcg/releases/$TDAQ_LCG_RELEASE/pylint/ | head -n 1` -/cvmfs/sft.cern.ch/lcg/releases/$TDAQ_LCG_RELEASE/pylint/$PYLINT_LATEST_VERSION/$CMTCONFIG/bin/pylint $(find . -name '*.py' -a -not -name config.py) +#PYLINT_LATEST_VERSION=`ls -t1 /cvmfs/sft.cern.ch/lcg/releases/$TDAQ_LCG_RELEASE/pylint/ | head -n 1` +#/cvmfs/sft.cern.ch/lcg/releases/$TDAQ_LCG_RELEASE/pylint/$PYLINT_LATEST_VERSION/$CMTCONFIG/bin/pylint $(find . -name '*.py' -a -not -name config.py)