(self,extension,location)
| 210 | return extension |
| 211 | |
| 212 | def save_extension(self,extension,location): |
| 213 | self.create_work_folder() |
| 214 | rint = random.randint(1,999999) |
| 215 | extension_folder = self.work_folder+"/extension_tmp"+str(rint) |
| 216 | if not os.path.exists(extension_folder): |
| 217 | logger.info("creating folder %s",extension_folder) |
| 218 | os.makedirs(extension_folder) |
| 219 | tmp_file = extension_folder+"/ext" |
| 220 | joblib.dump(extension,tmp_file) |
| 221 | extension.save(extension_folder) |
| 222 | futil = fu.FileUtil(aws_key=self.aws_key,aws_secret=self.aws_secret) |
| 223 | futil.copy(extension_folder,location) |
| 224 | |
| 225 | Extension_wrapper = DeprecationHelper(ExtensionWrapper) |
nothing calls this directly
no test coverage detected