1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 from importlib
import import_module
9 CURRENT_DIR
= os
.path
.dirname(os
.path
.realpath(__file__
))
10 PROJECT_DIR
= os
.path
.realpath(
11 os
.path
.join(CURRENT_DIR
, "..", "..", "mobile", "android")
13 ANDROID_COMPONENTS_DIR
= os
.path
.join(PROJECT_DIR
, "android-components")
14 FOCUS_DIR
= os
.path
.join(PROJECT_DIR
, "focus-android")
15 FENIX_DIR
= os
.path
.join(PROJECT_DIR
, "fenix")
18 def register(graph_config
):
20 Import all modules that are siblings of this one, triggering decorators in
34 def _import_modules(modules
):
35 for module
in modules
:
36 import_module(f
".{module}", package
=__name__
)