Index: build/android/symbolize.py |
diff --git a/build/android/symbolize.py b/build/android/symbolize.py |
index acd4e5166ae802d439888bc6bca69dc6284d828c..d5f6d7ca74bd88d70c78d38ccc083bc0780f014f 100755 |
--- a/build/android/symbolize.py |
+++ b/build/android/symbolize.py |
@@ -10,17 +10,16 @@ Sample usage: |
adb logcat chromium:V | symbolize.py |
""" |
-import os |
import re |
import sys |
-from pylib import constants |
+from pylib.constants import host_paths |
# Uses symbol.py from third_party/android_platform, not python's. |
-sys.path.insert(0, |
- os.path.join(constants.DIR_SOURCE_ROOT, |
- 'third_party/android_platform/development/scripts')) |
-import symbol |
+with host_paths.SysPath( |
+ host_paths.ANDROID_PLATFORM_DEVELOPMENT_SCRIPTS_PATH, |
+ position=0): |
+ import symbol |
# Sample output from base/debug/stack_trace_android.cc |
#00 0x693cd34f /path/to/some/libfoo.so+0x0007434f |