From d0890452e33f39daa71448e87324892e59c3d11b Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Wed, 17 Mar 2021 21:57:08 +0000 Subject: Add preparers for python Bug: 181070625 Test: m nothing Change-Id: I590ad62db6fd62719c83286780563cf6d55e3e17 --- python/library.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'python/library.go') diff --git a/python/library.go b/python/library.go index b724d2b9f..9663b3c75 100644 --- a/python/library.go +++ b/python/library.go @@ -21,8 +21,12 @@ import ( ) func init() { - android.RegisterModuleType("python_library_host", PythonLibraryHostFactory) - android.RegisterModuleType("python_library", PythonLibraryFactory) + registerPythonLibraryComponents(android.InitRegistrationContext) +} + +func registerPythonLibraryComponents(ctx android.RegistrationContext) { + ctx.RegisterModuleType("python_library_host", PythonLibraryHostFactory) + ctx.RegisterModuleType("python_library", PythonLibraryFactory) } func PythonLibraryHostFactory() android.Module { -- cgit v1.2.3-59-g8ed1b