Skip to content

Commit

Permalink
Merge pull request #35820 from smuzaffar/12_1-py3subprocess-RECONSTRU…
Browse files Browse the repository at this point in the history
…CTION

[RECONSTRUCTION] Fix needed for python3: Use of subprocess instead of commands
  • Loading branch information
cmsbuild committed Oct 26, 2021
2 parents c0053d4 + 0410c62 commit a0fbbb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RecoBTag/PerformanceDB/test/plotPerformanceDB.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3
#
#
# Francisco Yumiceva
Expand All @@ -12,7 +12,7 @@
from builtins import range
import sys
import math
import commands
import subprocess
from array import array
from ROOT import *

Expand Down Expand Up @@ -79,7 +79,7 @@ def main():

allcmd = executable+ sp +rootFile+ sp +payload+ sp +flavor+ sp +typeSF+ sp +tmpjetpt+ sp +tmpjeteta
print(allcmd)
output = commands.getstatusoutput(allcmd)
output = subprocess.getstatusoutput(allcmd)
print(output[1])

if output[0]!=0:
Expand All @@ -93,7 +93,7 @@ def main():

allcmd = executable+ sp +rootFile+ sp +payload+ sp +flavor+ sp +typeEff+ sp +tmpjetpt+ sp +tmpjeteta
#print allcmd
output = commands.getstatusoutput(allcmd)
output = subprocess.getstatusoutput(allcmd)
#print output[1]

if output[0]!=0:
Expand Down

0 comments on commit a0fbbb9

Please sign in to comment.