otherwise it will overwrite linking source file

This commit is contained in:
Ignacio Eguinoa
2017-11-01 13:22:43 -04:00
committed by John Chilton
parent 24da84a525
commit b7e05a012c
+1 -1
View File
@@ -990,7 +990,7 @@ class JobWrapper(object, HasResourceParameters):
etype, evalue, tb = sys.exc_info()
outputs_to_working_directory = util.asbool(self.get_destination_configuration("outputs_to_working_directory", False))
if outputs_to_working_directory:
if outputs_to_working_directory and not self.__link_file_check():
for dataset_path in self.get_output_fnames():
try:
shutil.move(dataset_path.false_path, dataset_path.real_path)