Index: build/android/pylib/screenshot.py |
diff --git a/build/android/pylib/screenshot.py b/build/android/pylib/screenshot.py |
index 390837292fa5d59532b38ba1d7b74c6d5a6af25c..25d9b1ad5a244014eff2f77f2c8384d96977243a 100644 |
--- a/build/android/pylib/screenshot.py |
+++ b/build/android/pylib/screenshot.py |
@@ -84,7 +84,7 @@ class VideoRecorder(object): |
""" |
host_file_name = host_file or ('screen-recording-%s.mp4' % |
self._device.old_interface.GetTimestamp()) |
- host_file = os.path.abspath(host_file_name) |
- self._device.old_interface.EnsureHostDirectory(self._host_file) |
+ host_file_name = os.path.abspath(host_file_name) |
+ self._device.old_interface.EnsureHostDirectory(host_file_name) |
self._device.PullFile(self._device_file, host_file_name) |
self._device.RunShellCommand('rm -f "%s"' % self._device_file) |