File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -272,20 +272,6 @@ def __init__(
272272
273273 self .src_file , self .lib_file , self .log_file = self .get_kernel_compile_files ()
274274
275- def __del__ (self ):
276- # Clean-up the in-memory dynamic linked libraries.
277- # This is not really necessary, as these programs are not that large, but with the new random
278- # naming scheme which is required on Windows OS'es to deal with updates to a Parcels' kernel.
279- try :
280- self .remove_lib ()
281- except :
282- pass
283- self ._fieldset = None
284- self .field_args = None
285- self .const_args = None
286- self .funcvars = None
287- self .funccode = None
288-
289275 @property
290276 def ptype (self ):
291277 return self ._ptype
@@ -411,7 +397,7 @@ def remove_lib(self):
411397 all_files .append (self .src_file )
412398 if self .log_file is not None :
413399 all_files .append (self .log_file )
414- if self .lib_file is not None and all_files is not None and self . delete_cfiles is not None :
400+ if self .lib_file is not None :
415401 self .cleanup_remove_files (self .lib_file , all_files , self .delete_cfiles )
416402
417403 # If file already exists, pull new names. This is necessary on a Windows machine, because
You can’t perform that action at this time.
0 commit comments