Skip to content

Commit

Permalink
remove unused prepSandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte committed Jun 27, 2023
1 parent 84b461e commit 856ac04
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions scripts/CMSRunAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,27 +382,6 @@ def parseArgs():

return opts

def prepSandbox(opts):
print("==== Sandbox untarring STARTING at %s ====" % time.asctime(time.gmtime()))

#The user sandbox.tar.gz has to be unpacked no matter what (even in DEBUG mode)
print(subprocess.getoutput('tar xfm %s' % opts.archiveJob))
print("==== Sandbox untarring FINISHED at %s ====" % time.asctime(time.gmtime()))

#move the pset in the right place
print("==== WMCore filesystem preparation STARTING at %s ====" % time.asctime(time.gmtime()))
destDir = 'WMTaskSpace/cmsRun'
if os.path.isdir(destDir):
shutil.rmtree(destDir)
os.makedirs(destDir)
os.rename('PSet.py', destDir + '/PSet.py')
open('WMTaskSpace/__init__.py', 'w').close()
open(destDir + '/__init__.py', 'w').close()
#move the additional user files in the right place
if opts.userFiles:
for myfile in opts.userFiles.split(','):
os.rename(myfile, destDir + '/' + myfile)
print("==== WMCore filesystem preparation FINISHED at %s ====" % time.asctime(time.gmtime()))

def extractUserSandbox(archiveJob, cmsswVersion):
# the user sandbox contains the user scram directory files and thus
Expand Down Expand Up @@ -579,7 +558,6 @@ def StripReport(report):
# Note that we may fail in the imports
try:
options = parseArgs()
prepSandbox(options)
from WMCore.WMRuntime.Bootstrap import setupLogging
from WMCore.FwkJobReport.Report import Report
from WMCore.FwkJobReport.Report import FwkJobReportException
Expand Down

0 comments on commit 856ac04

Please sign in to comment.