summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
Diffstat (limited to 'python/python.go')
-rw-r--r--python/python.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/python.go b/python/python.go
index 05efbeae9..9a3b1bbc3 100644
--- a/python/python.go
+++ b/python/python.go
@@ -242,6 +242,14 @@ func versionSplitMutator() func(android.BottomUpMutatorContext) {
}
}
+func (p *Module) HostToolPath() android.OptionalPath {
+ if p.installer == nil {
+ // python_library is just meta module, and doesn't have any installer.
+ return android.OptionalPath{}
+ }
+ return android.OptionalPathForPath(p.installer.(*binaryDecorator).path)
+}
+
func (p *Module) isEmbeddedLauncherEnabled(actual_version string) bool {
switch actual_version {
case pyVersion2: