Skip to content

Commit abc4ff0

Browse files
author
Michael Brüning
committed
<third_party/libvpx> Fix Python IOError due to path length on Windows.
Convert to absolute path as a workaround as done in idl generation as well. Based on input from Armin Novak <[email protected]> Task-number: QTBUG-48684 Change-Id: I89923dc8be4a276920191927e3704b8cdc72e2d9 Reviewed-by: Peter Varga <[email protected]> Reviewed-by: Allan Sandfeld Jensen <[email protected]>
1 parent 522f0c4 commit abc4ff0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

chromium/third_party/libvpx/copy_obj.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
sys.exit(1)
2525

2626
for src in options.source:
27+
src = os.path.normpath(os.path.join(os.getcwd(), src))
28+
options.destination = os.path.normpath(os.path.join(os.getcwd(), options.destination))
2729
if os.path.exists(src):
2830
shutil.copyfile(src, options.destination)
2931
sys.exit(0)

chromium/third_party/libvpx/obj_int_extract.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"This script is used to run obj_int_extract and output the result to a file."
88

99
import optparse
10+
import os
1011
import subprocess
1112
import sys
1213

@@ -25,6 +26,8 @@
2526
sys.exit(1)
2627

2728
with open(options.output, 'w') as fh:
29+
options.executable = os.path.normpath(os.path.join(os.getcwd(), options.executable))
30+
options.binary = os.path.normpath(os.path.join(os.getcwd(), options.binary))
2831
subprocess.check_call([options.executable, options.format, options.binary],
2932
stdout=fh)
3033

0 commit comments

Comments
 (0)