summaryrefslogtreecommitdiff
path: root/python/library.go
diff options
context:
space:
mode:
Diffstat (limited to 'python/library.go')
-rw-r--r--python/library.go8
1 files changed, 6 insertions, 2 deletions
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 {