We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84d2e74 + 5f12955 commit 144bf4fCopy full SHA for 144bf4f
PhysicsTools/Utilities/scripts/edmPickEvents.py
@@ -11,7 +11,7 @@
11
import sys
12
import optparse
13
import re
14
-import commands
+
15
from FWCore.PythonUtilities.LumiList import LumiList
16
import json
17
from pprint import pprint
@@ -151,8 +151,8 @@ def fullCPMpath():
151
raise RuntimeError("Could not find copyPickMerge_cfg.py")
152
153
def guessEmail():
154
- return '%s@%s' % (commands.getoutput ('whoami'),
155
- '.'.join(commands.getoutput('hostname').split('.')[-2:]))
+ return '%s@%s' % (subprocess.getoutput ('whoami'),
+ '.'.join(subprocess.getoutput('hostname').split('.')[-2:]))
156
157
def setupCrabDict (options):
158
date = datetime.now().strftime('%Y%m%d_%H%M%S')
0 commit comments