8000 use subprocess.run · yonip/opencv-python@b31049d · GitHub
[go: up one dir, main page]

Skip to content < 8000 script type="application/json" data-target="react-partial.embeddedData">{"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit b31049d

Browse files
committed
use subprocess.run
1 parent f6e2eea commit b31049d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def main():
110110
if (sys.platform == 'darwin' or sys.platform.startswith('linux')) and not build_headless:
111111
cmake_args.append("-DWITH_QT=4")
112112
# Apply Qt namespace patches to OpenCV GUI code
113-
subprocess.check_call(["patch", "-p0", "<", "patches/patch1.patch"])
114-
subprocess.check_call(["patch", "-p0", "<", "patches/patch2.patch"])
113+
subprocess.run("patch -p0 < patches/patch1.patch", shell=True, check=True)
114+
subprocess.run("patch -p0 < patches/patch2.patch", shell=True, check=True)
115115

116116
if build_headless:
117117
# it seems that cocoa cannot be disabled so on macOS the package is not truly headless

0 commit comments

Comments
 (0)
0