Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0665e8e2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Use python3 specifically for envsetup.sh" am: 10b66f69 am: 65e53967

Original change: https://android-review.googlesource.com/c/platform/build/+/1691550

Change-Id: I0be1b5ba1d5692410694ca399bc2c8527944d7ac
parents c76662b9 65e53967
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1473,7 +1473,7 @@ function verifymodinfo() {
function allmod() {
    verifymodinfo || return 1

    python -c "import json; print('\n'.join(sorted(json.load(open('$ANDROID_PRODUCT_OUT/module-info.json')).keys())))"
    python3 -c "import json; print('\n'.join(sorted(json.load(open('$ANDROID_PRODUCT_OUT/module-info.json')).keys())))"
}

# Get the path of a specific module in the android tree, as cached in module-info.json.
@@ -1487,7 +1487,7 @@ function pathmod() {

    verifymodinfo || return 1

    local relpath=$(python -c "import json, os
    local relpath=$(python3 -c "import json, os
module = '$1'
module_info = json.load(open('$ANDROID_PRODUCT_OUT/module-info.json'))
if module not in module_info:
@@ -1513,7 +1513,7 @@ function dirmods() {

    verifymodinfo || return 1

    python -c "import json, os
    python3 -c "import json, os
dir = '$1'
while dir.endswith('/'):
    dir = dir[:-1]
@@ -1558,7 +1558,7 @@ function outmod() {
    verifymodinfo || return 1

    local relpath
    relpath=$(python -c "import json, os
    relpath=$(python3 -c "import json, os
module = '$1'
module_info = json.load(open('$ANDROID_PRODUCT_OUT/module-info.json'))
if module not in module_info: