@echo off
rem Path to this batch file
set NRF_SNIFFER_BLE_PATH=%~dp0
rem Remove the "\" from the end of the path
set NRF_SNIFFER_BLE_PATH=%NRF_SNIFFER_BLE_PATH:~0,-1%
rem Activate virtualenv if present
rem if exist "%NRF_SNIFFER_BLE_PATH%\env\Scripts\activate.bat" call "%NRF_SNIFFER_BLE_PATH%\env\Scripts\activate.bat"
rem Find out if the launcher is installed and available
rem where py > NUL 2>&1 
rem if %ERRORLEVEL% EQU 0 (
rem     py -3 "%NRF_SNIFFER_BLE_PATH%\nrf_sniffer_ble.py" %*
rem ) else (
rem     python "%NRF_SNIFFER_BLE_PATH%\nrf_sniffer_ble.py" %*
rem )
python "%NRF_SNIFFER_BLE_PATH%\nrf_sniffer_ble.py" %*