Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Commit 773611f

Browse files
committed
fix path in strip_wrapper.py
1 parent a001605 commit 773611f

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

strip_wrapper.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
def main():
77
# Parse arguments
88
strip_exe = sys.argv[1]
9-
input_lib = Path(sys.argv[2])
9+
input_lib = Path(sys.argv[5], sys.argv[2])
1010
options_file = Path(sys.argv[3])
1111
base_name = os.path.basename(sys.argv[4])
1212
output1 = os.path.join(sys.argv[5], base_name)
@@ -17,10 +17,14 @@ def main():
1717
strip_options = f.read().strip()
1818

1919
# Run strip command
20-
subprocess.run(
21-
[strip_exe] + strip_options.split() + [str(input_lib), '-o', str(output1)],
22-
check=True
23-
)
20+
try:
21+
subprocess.run(
22+
[strip_exe] + strip_options.split() + [str(input_lib), '-o', str(output1)],
23+
check=True
24+
)
25+
except:
26+
print(f"failed writing {output1}")
27+
print(f"failed strippng {input_lib}")
2428

2529
# copy to second location
2630
subprocess.run(

0 commit comments

Comments
 (0)