Index: build/android/emulator.py |
diff --git a/build/android/emulator.py b/build/android/emulator.py |
index 49c3caa8de2f6113cb9ace22c27dc5d4d7d007c5..67adfb335674a6ad3e64f79427859736d4c52f3e 100755 |
--- a/build/android/emulator.py |
+++ b/build/android/emulator.py |
@@ -146,6 +146,8 @@ class Emulator(object): |
""" |
logging.info('Aggressive Image Cleanup') |
emulator_imagedir = '/tmp/android-%s' % os.environ['USER'] |
+ if not os.path.exists(emulator_imagedir): |
+ return |
for image in os.listdir(emulator_imagedir): |
full_name = os.path.join(emulator_imagedir, image) |
if 'emulator' in full_name: |