Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
0a23c1bf
Commit
0a23c1bf
authored
Sep 23, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12614 from alalek:winpack_samples_python_launcher_update
parents
d5d19a9f
ecef7f79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
_run_winpack_demo_python27.cmd
samples/python/_run_winpack_demo_python27.cmd
+18
-3
No files found.
samples/python/_run_winpack_demo_python27.cmd
View file @
0a23c1bf
@echo off
if NOT exist %CD%\..\..\..\build (
setlocal enableDelayedExpansion
set SCRIPTDIR=%~dp0
if NOT exist %SCRIPTDIR%\..\..\..\build (
echo ERROR: OpenCV Winpack installation is required
pause
exit
)
:: Path to FFMPEG binary files
set PATH=%PATH%;%
CD
%\..\..\..\build\bin\
set PATH=%PATH%;%
SCRIPTDIR
%\..\..\..\build\bin\
:: Detect Python binary
python -V
...
...
@@ -43,5 +46,17 @@ if %ERRORLEVEL% EQU 32 (
)
)
:: Launch demo
:: Don't generate unnecessary .pyc cache files
set PYTHONDONTWRITEBYTECODE=1
if [%1]==[] goto rundemo
%PYTHON% %*
set result=%errorlevel%
IF %result% NEQ 0 (pause)
EXIT /B %result%
:rundemo
%PYTHON% demo.py
set result=%errorlevel%
IF %result% NEQ 0 (pause)
EXIT /B %result%
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment