import killSalomeWithPort
self.killSalomeWithPort = killSalomeWithPort
return
- def __del__(self):
+ def delete(self):
self.killSalomeWithPort.killMyPort(self.port)
return
pass
from searchFreePort import searchFreePort
searchFreePort(args, 0)
clt = useSalome(args, modules_list, modules_root_dir)
+
+ if args.has_key('shutdown_servers') :
+ var = args['shutdown_servers']
+ if hasattr(var, 'delete') and callable(getattr(var, 'delete')) :
+ var.delete()
return clt
# -----------------------------------------------------------------------------
foreGround(clt, args)
pass
# --
+ if args.has_key('shutdown_servers') :
+ var = args['shutdown_servers']
+ if hasattr(var, 'delete') and callable(getattr(var, 'delete')) :
+ var.delete()
pass
#