Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct python version #13442

Merged
merged 1 commit into from
Feb 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Alignment/MuonAlignment/python/geometryDiff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

from Alignment.MuonAlignment.geometryXMLparser import MuonGeometry, dtorder, cscorder
import sys, getopt
Expand Down
2 changes: 1 addition & 1 deletion Alignment/MuonAlignment/python/geometryXMLparser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

# XML must come from MuonGeometryDBConverter; not hand-made
# Example configuration that will work
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

""" Helper functions for time conversions """

Expand Down
2 changes: 1 addition & 1 deletion CondFormats/MFObjects/test/writeAllMagFieldConfigDB.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

import os
import sys
Expand Down
2 changes: 0 additions & 2 deletions DQMOffline/JetMET/test/publish/make_html_output.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env python

#!/usr/bin/python

import ROOT
import sys,os,string,errno,shutil
import code
Expand Down
14 changes: 7 additions & 7 deletions DQMServices/Diagnostic/scripts/Database/Python/WatchDog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Dir=/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/HDQM/Cron/Scripts/RunSelection/Test
PID=`ps ax | grep -v grep | grep "${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_StreamExpress.cfg" | awk '{print $1}'`
if [ ! "${PID}" ]; then
echo "HDQMDatabaseProducer.py for StreamExpress not running, restarting it at" `date`
/usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_StreamExpress.cfg
/usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_StreamExpress.cfg
else
echo "HDQMDatabaseProducer.py for StreamExpress still running at" `date`
fi
Expand All @@ -21,7 +21,7 @@ fi
PID=`ps ax | grep -v grep | grep "${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_MinimumBias.cfg" | awk '{print $1}'`
if [ ! "${PID}" ]; then
echo "HDQMDatabaseProducer.py for MinimumBias not running, restarting it at" `date`
/usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_MinimumBias.cfg
/usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_MinimumBias.cfg
else
echo "HDQMDatabaseProducer.py for MinimumBias still running at" `date`
fi
Expand All @@ -30,7 +30,7 @@ fi
PID=`ps ax | grep -v grep | grep "${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_Cosmics.cfg" | awk '{print $1}'`
if [ ! "${PID}" ]; then
echo "HDQMDatabaseProducer.py for Cosmics not running, restarting it at" `date`
/usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_Cosmics.cfg
/usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_Cosmics.cfg
else
echo "HDQMDatabaseProducer.py for Cosmics still running at" `date`
fi
Expand All @@ -53,12 +53,12 @@ if [ ! "${PID1}" ]; then
if [ ! "${PIDRPC3}" ]; then

echo "HDQMDatabaseProducer.py for StreamExpress not running, restarting it at" `date`
/usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_StreamExpressRPC.cfg
/usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_MinimumBiasRPC.cfg
/usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_CosmicsRPC.cfg
/usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_StreamExpressRPC.cfg
/usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_MinimumBiasRPC.cfg
/usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_CosmicsRPC.cfg
fi
fi
fi
fi
fi
fi
fi
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Dir=/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/HDQM/Cron/Scripts/RunSelection/Test
# PID=`ps ax | grep -v grep | grep "${Dir}/HDQMDatabaseProducer.py" | awk '{print $1}'`
# if [ ! "${PID}" ]; then
# echo "HDQMDatabaseProducer.py for StreamExpress not running, restarting it at" `date`
# /usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_StreamExpress.cfg
# /usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_StreamExpress.cfg
# else
# echo "HDQMDatabaseProducer.py for StreamExpress still running at" `date`
# fi
Expand All @@ -23,7 +23,7 @@ Dir=/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/HDQM/Cron/Scripts/RunSelection/Test
# PID=`ps ax | grep -v grep | grep "${Dir}/HDQMDatabaseProducer.py" | awk '{print $1}'`
# if [ ! "${PID}" ]; then
# echo "HDQMDatabaseProducer.py for MinimumBias not running, restarting it at" `date`
# /usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_MinimumBias.cfg
# /usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_MinimumBias.cfg
# else
# echo "HDQMDatabaseProducer.py for MinimumBias still running at" `date`
# fi
Expand All @@ -33,7 +33,7 @@ Dir=/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/HDQM/Cron/Scripts/RunSelection/Test
# PID=`ps ax | grep -v grep | grep "${Dir}/HDQMDatabaseProducer.py" | awk '{print $1}'`
# if [ ! "${PID}" ]; then
# echo "HDQMDatabaseProducer.py for Cosmics not running, restarting it at" `date`
# /usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_Cosmics.cfg
# /usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_Cosmics.cfg
# else
# echo "HDQMDatabaseProducer.py for Cosmics still running at" `date`
# fi
Expand All @@ -42,9 +42,9 @@ PID=`ps ax | grep -v grep | grep "${Dir}/HDQMDatabaseProducer.py" | awk '{print
echo "PID = ${PID}"
if [ ! "${PID}" ]; then
echo "HDQMDatabaseProducer.py not running, starting it at" `date`
/usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_StreamExpress.cfg
/usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_MinimumBias.cfg
/usr/bin/python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_Cosmics.cfg
/usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_StreamExpress.cfg
/usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_MinimumBias.cfg
/usr/bin/env python ${Dir}/HDQMDatabaseProducer.py ${Dir}/HDQMDatabaseProducerConfiguration_Cosmics.cfg
else
echo "HDQMDatabaseProducer.py still running at" `date`
fi
2 changes: 1 addition & 1 deletion HLTrigger/HLTanalyzers/test/CreateCFGs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
#

import sys,string,time,os
Expand Down
2 changes: 1 addition & 1 deletion HLTrigger/HLTanalyzers/test/CreateFileLists.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
#

import sys,string,time,os
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

import sys,HTMLTableParser

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

#import pprint
import sys,HTMLTableParser
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

import sys,HTMLTableParser

Expand Down
2 changes: 1 addition & 1 deletion HLTrigger/HLTanalyzers/test/rates/printPathsFromHLThtml.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

#import pprint
import sys,HTMLTableParser
Expand Down
2 changes: 1 addition & 1 deletion RecoLuminosity/LumiDB/scripts/lumiDBFiller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python

import string, os, time,re
import commands
Expand Down
2 changes: 1 addition & 1 deletion RecoLuminosity/LumiDB/test/loadValidationByDir.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python
import os,os.path,sys,fnmatch,commands
dbname='oracle://cms_orcon_prod/cms_lumi_prod'
authpath='/home/lumidb/auth/writer'
Expand Down
2 changes: 1 addition & 1 deletion Utilities/RelMon/python/web/app_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python
# coding: utf-8
'''
Helper functions for CherryPy application ``browse_db.py``.
Expand Down
2 changes: 1 addition & 1 deletion Utilities/RelMon/python/web/browse_db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python
# coding: utf-8
'''
CherryPy application, which enables dynamic SQLite3 database file with release
Expand Down
2 changes: 1 addition & 1 deletion Utilities/RelMon/python/web/dbfile2html.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#!/usr/bin/env python
# coding: utf-8
'''
Generates static HTML for the given database file.
Expand Down
2 changes: 1 addition & 1 deletion Validation/CaloTowers/test/macros/RelValHarvest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

import sys, os

Expand Down
2 changes: 1 addition & 1 deletion Validation/Performance/scripts/cmsBenchmark.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
"""
Usage: ./cmsBenchmark.py [options]

Expand Down
2 changes: 1 addition & 1 deletion Validation/RecoEgamma/test/makeWebpage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

## This script writes an index.html page
## displaying all plots contained in the
Expand Down