mirror of
https://github.com/chenxiaolong/avbroot.git
synced 2026-07-03 14:05:11 +02:00
Merge pull request #39 from chenxiaolong/executable
Minor quality of life improvements for avbroot.py
This commit is contained in:
Regular → Executable
+1
@@ -306,6 +306,7 @@ def extract_subcommand(args):
|
||||
images, _, _ = get_images(manifest)
|
||||
|
||||
print_status('Extracting', ', '.join(images), 'from the payload')
|
||||
os.makedirs(args.directory, exist_ok=True)
|
||||
ota.extract_images(f, manifest, blob_offset, args.directory,
|
||||
images)
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ import zipfile
|
||||
|
||||
# Silence undesired warning
|
||||
orig_argv0 = sys.argv[0]
|
||||
sys.argv[0] = sys.argv[0].removesuffix('.py')
|
||||
sys.argv[0] = os.path.basename(sys.argv[0]).removesuffix('.py')
|
||||
import ota_utils
|
||||
sys.argv[0] = orig_argv0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user