Something went wrong on our end
ost.bat.in 2.07 KiB
@ECHO OFF
REM ------------------------------------------------------------------------------
REM This file is part of the OpenStructure project <www.openstructure.org>
REM
REM Copyright (C) 2008-2020 by the OpenStructure authors
REM
REM This library is free software; you can redistribute it and/or modify it under
REM the terms of the GNU Lesser General Public License as published by the Free
REM Software Foundation; either version 3.0 of the License, or (at your option)
REM any later version.
REM This library is distributed in the hope that it will be useful, but WITHOUT
REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
REM FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
REM details.
REM
REM You should have received a copy of the GNU Lesser General Public License
REM along with this library; if not, write to the Free Software Foundation, Inc.,
REM 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
REM ------------------------------------------------------------------------------
REM Windows startup script for a protein-centric user interface
REM Author: Juergen Haas
REM Self detect important directories
SETLOCAL ENABLEDELAYEDEXPANSION
set SCRIPT_NAME=%0%
set BIN_DIR=%~dp0
set DNG_ROOT=%BIN_DIR%\..
set PATH=%BIN_DIR%;%DNG_ROOT%\@LIBDIR@\@BUILD_TYPE@;%DNG_ROOT%\@LIBDIR@;%DNG_ROOT%\bin\@BUILD_TYPE@;%PATH%
REM retrieve absolute path to python executable
set pyexec=%BIN_DIR%\python.exe
if NOT EXIST "%pyexec%" echo "Error: Python executable '$pyexec' not found!" && exit /B
REM decide whether to start interactively or not
REM interact_ mode can be forced by setting -i as a ost_cl option
set opts=
if "%1" == "" (
set interact_=-i
echo no arguments given - starting interactive OpenStructure session
) else (
for %%i in (%*) do (
if "%%i"=="-i" (
set interact_=-i
) else (
set opts=!opts! %%i
)
)
echo passing commandline options %opts% to ost
)
call "%pyexec%" %interact_% "%DNG_ROOT%\@LIBDIR@\openstructure\ost_startup.py" %opts%