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 |
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') |
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 |