remember device-specific releasetools extensions in target-files

Store the location of the releasetools extensions in the target-files
zip, and make ota_from_target_files use that stored location by
default (though it can still be overridden with -s if desired).
This commit is contained in:
Doug Zongker
2009-09-30 09:20:32 -07:00
parent c3c136c4cd
commit c18736b1a7
3 changed files with 28 additions and 9 deletions

View File

@@ -440,7 +440,7 @@ class DeviceSpecificParams(object):
if self.module is None:
path = OPTIONS.device_specific
if path is None: return
if not path: return
try:
if os.path.isdir(path):
info = imp.find_module("releasetools", [path])