ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/cms_cmssw.py
(Generate patch)

Comparing COMP/CRAB/python/cms_cmssw.py (file contents):
Revision 1.73 by gutsche, Sun Apr 8 18:39:51 2007 UTC vs.
Revision 1.79 by corvo, Thu May 3 09:25:57 2007 UTC

# Line 162 | Line 162 | class Cmssw(JobType):
162                      if not os.path.exists(file):
163                          raise CrabException("Additional input file not found: "+file)
164                      pass
165 <                    storedFile = common.work_space.shareDir()+file
165 >                    storedFile = common.work_space.pathForTgz()+file
166                      shutil.copyfile(file, storedFile)
167                      self.additional_inbox_files.append(string.strip(storedFile))
168                  pass
# Line 687 | Line 687 | class Cmssw(JobType):
687          try: # create tar ball
688              tar = tarfile.open(self.tgzNameWithPath, "w:gz")
689              ## First find the executable
690 <            if (executable != ''):
690 >            if (self.executable != ''):
691                  exeWithPath = self.scram.findFile_(executable)
692                  if ( not exeWithPath ):
693                      raise CrabException('User executable '+executable+' not found')
# Line 698 | Line 698 | class Cmssw(JobType):
698                      common.logger.debug(5,"Exe "+exeWithPath+" to be tarred")
699                      path = swArea+'/'
700                      exe = string.replace(exeWithPath, path,'')
701 <                    tar.add(path+exe,executable)
701 >                    tar.add(path+exe,exe)
702                      pass
703                  else:
704                      # the exe is from release, we'll find it on WN

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines