forked from Cumulocity-IoT/apama-analytics-builder-block-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalytics_builder.cmd
More file actions
29 lines (21 loc) · 890 Bytes
/
analytics_builder.cmd
File metadata and controls
29 lines (21 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
rem Copyright (c) 2019-present Cumulocity GmbH, Duesseldorf, Germany and/or its affiliates and/or their licensors.
rem Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Cumulocity GmbH
setlocal
set THIS_SCRIPT=%~$PATH:0
call :getpath %THIS_SCRIPT
set "PATH=%APAMA_HOME%\third_party\python;%PATH%"
set PYTHON_VERSION=0
for /f %%i in ('python -c "import sys; print(sys.version_info[0])"') do set PYTHON_VERSION=%%i
if %PYTHON_VERSION% LSS 3 (goto PY_UNDEFINED)
python.exe "%THIS_DIR%/analytics_builder" %* || EXIT /B 1
goto END
:PY_UNDEFINED
echo Add an appropriate Python 3 version to your path. Refer to the system requirements in the README of the Analytics Builder Block SDK documentation.
goto END
:END
endlocal
exit /b
:getpath
set THIS_DIR=%~dp0
exit /b