summaryrefslogtreecommitdiffstats
path: root/build/scripts
diff options
context:
space:
mode:
authorsay <[email protected]>2026-01-15 08:33:35 +0300
committersay <[email protected]>2026-01-15 08:50:33 +0300
commitb19f571c577f4189a105a73580ca04248d091ee0 (patch)
tree4f914ba50d363d61d87de22cdddbf585c93f94c7 /build/scripts
parent743db03e460759247cc83b5c9f44cba60416b240 (diff)
Fix 'Argument list too long'
commit_hash:42cbe679894a95a825348d1af0e50bac0c87a7eb
Diffstat (limited to 'build/scripts')
-rw-r--r--build/scripts/copy_to_dir.py6
-rwxr-xr-xbuild/scripts/fetch_from_sandbox.py3
2 files changed, 7 insertions, 2 deletions
diff --git a/build/scripts/copy_to_dir.py b/build/scripts/copy_to_dir.py
index ab71a3e1e2f..14b20c63296 100644
--- a/build/scripts/copy_to_dir.py
+++ b/build/scripts/copy_to_dir.py
@@ -5,6 +5,10 @@ import os
import shutil
import tarfile
+sys.path.append(os.path.dirname(os.path.abspath(__file__)))
+
+import process_command_files as pcf # noqa: E402
+
def parse_args():
parser = argparse.ArgumentParser()
@@ -12,7 +16,7 @@ def parse_args():
parser.add_argument('--dest-arch', default=None)
parser.add_argument('--dest-dir', required=True)
parser.add_argument('args', nargs='*')
- return parser.parse_args()
+ return parser.parse_args(pcf.get_args(sys.argv[1:]))
def ensure_dir_exists(path):
diff --git a/build/scripts/fetch_from_sandbox.py b/build/scripts/fetch_from_sandbox.py
index d9029922514..29014cc4a3b 100755
--- a/build/scripts/fetch_from_sandbox.py
+++ b/build/scripts/fetch_from_sandbox.py
@@ -15,6 +15,7 @@ import uuid
# Don't forget to add imported scripts to inputs of the calling command!
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
+import process_command_files as pcf
import fetch_from
@@ -29,7 +30,7 @@ def parse_args():
parser.add_argument('--resource-id', type=int, required=True)
parser.add_argument('--custom-fetcher')
parser.add_argument('--resource-file')
- return parser.parse_args()
+ return parser.parse_args(pcf.get_args(sys.argv[1:]))
class ResourceInfoError(Exception):