summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2022-10-05 11:50:04 -0700
committer Cole Faust <colefaust@google.com> 2022-10-05 11:51:26 -0700
commit5fe655d1c71ee079dd46e93c96b54aae39a10d16 (patch)
treef6674c96179ae1a7d54150a18cc85b5d8a9ea9ac /python/python.go
parent7ea3a8248060ee279d17bf2ca71051d049917278 (diff)
Enable new python path behavior by default
Now that usages have been updated, enable the new behavior by default. If everything goes well with this, we can then remove the flags. Bug: 245583294 Bug: 247578564 Test: Presubmits Change-Id: Idac8d2dc0f96ae750dba4a99b32525676d0d6f25
Diffstat (limited to 'python/python.go')
-rw-r--r--python/python.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/python.go b/python/python.go
index f6029c250..6f3a0ecf3 100644
--- a/python/python.go
+++ b/python/python.go
@@ -677,8 +677,7 @@ func (p *Module) createSrcsZip(ctx android.ModuleContext, pkgPath string) androi
protoFlags := android.GetProtoFlags(ctx, &p.protoProperties)
protoFlags.OutTypeFlag = "--python_out"
- // TODO(b/247578564): Change the default to true, and then eventually remove respect_pkg_path
- protosRespectPkgPath := proptools.BoolDefault(p.properties.Proto.Respect_pkg_path, false)
+ protosRespectPkgPath := proptools.BoolDefault(p.properties.Proto.Respect_pkg_path, true)
pkgPathForProtos := pkgPath
if pkgPathForProtos != "" && protosRespectPkgPath {
pkgPathStagingDir := android.PathForModuleGen(ctx, "protos_staged_for_pkg_path")