Skip to content

Commit

Permalink
Use correct python version
Browse files Browse the repository at this point in the history
  • Loading branch information
wmtan committed Feb 23, 2016
1 parent ba4b706 commit 347cb96
Show file tree
Hide file tree
Showing 21 changed files with 31 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Alignment/MuonAlignment/python/geometryDiff.py
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
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
@@ -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
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
#

import sys,string,time,os
Expand Down
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

import sys,HTMLTableParser

Expand Down
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python

#import pprint
import sys,HTMLTableParser
Expand Down
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit 347cb96

Please sign in to comment.