@setlocal
@set LIBTBX_PREFIX=%~dp0
@set LIBTBX_PREFIX=%LIBTBX_PREFIX:~0,-1%
@for %%F in ("%LIBTBX_PREFIX%") do @set LIBTBX_PREFIX=%%~dpF
@set LIBTBX_PREFIX=%LIBTBX_PREFIX:~0,-1%
@set LIBTBX_DISPATCHER_NAME=%~nx0
@set LIBTBX_PYEXE=%LIBTBX_PREFIX%\..\python.exe
@"%LIBTBX_PYEXE%" "%LIBTBX_PREFIX%\..\Lib\site-packages\libtbx\command_line\sge_available_slots.py" %*
