diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-13 01:39:47 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-13 01:39:47 +0000 |
commit | 967f78f56f9f1eaab0eefe1a5f03ac93b3318c87 (patch) | |
tree | ae0e6c30c6392a211ffad22320f348ba6847fdf8 | |
parent | 50dfa52636aa22c9ce78c12535d4b68d09064550 (diff) | |
parent | bcd30f8f0cbba4a70ca0cb15cf62637083fb4c12 (diff) | |
download | external_updater-967f78f56f9f1eaab0eefe1a5f03ac93b3318c87.tar.gz |
Snap for 9931682 from bcd30f8f0cbba4a70ca0cb15cf62637083fb4c12 to udc-d1-release
Change-Id: Iff22e02d024c987709c243ac283946d78c6b3e33
-rw-r--r-- | fileutils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fileutils.py b/fileutils.py index 841e0d7..db713dd 100644 --- a/fileutils.py +++ b/fileutils.py @@ -24,7 +24,10 @@ from google.protobuf import text_format # type: ignore # pylint: disable=import-error import metadata_pb2 # type: ignore -ANDROID_TOP = Path(os.getcwd()) +# ./updater.sh doesn't require ANDROID_BUILD_TOP, and will cd into the project directory +# before executing. Tests, however, will be executed from an arbitrary location in +# $OUT_DIR, so we still need the ANDROID_BUILD_TOP workflow. +ANDROID_TOP = Path(os.environ.get("ANDROID_BUILD_TOP", os.getcwd())) EXTERNAL_PATH = ANDROID_TOP / 'external' if not EXTERNAL_PATH.exists(): |