sbsv2/raptor/bin/sbs.bat
changeset 291 0e6a0a765dcd
parent 276 e80c44f576df
child 299 2257b1af191f
child 342 f0e42ff3359f
equal deleted inserted replaced
244:aba9fdf7e825 291:0e6a0a765dcd
     1 @rem
     1 @rem
     2 @rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 @rem Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 @rem All rights reserved.
     3 @rem All rights reserved.
     4 @rem This component and the accompanying materials are made available
     4 @rem This component and the accompanying materials are made available
     5 @rem under the terms of the License "Eclipse Public License v1.0"
     5 @rem under the terms of the License "Eclipse Public License v1.0"
     6 @rem which accompanies this distribution, and is available
     6 @rem which accompanies this distribution, and is available
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
    26 @cd /d %RAPTORBINDIR%\..
    26 @cd /d %RAPTORBINDIR%\..
    27 @SET SBS_HOME=%cd%
    27 @SET SBS_HOME=%cd%
    28 @cd /d %WD%
    28 @cd /d %WD%
    29 :foundhome 
    29 :foundhome 
    30 
    30 
    31 @REM Use the python set by the environment if possible
    31 @REM The python and PYTHONPATH used by Raptor are determined by, in order of precedence:
       
    32 @REM 1. the SBS_PYTHON and SBS_PYTHONPATH environment variables (if set)
       
    33 @REM 2. the python shipped locally with Raptor (if present)
       
    34 @REM 3. the python on the system PATH and the PYTHONPATH set in the system environment
       
    35 
       
    36 @SET __LOCAL_PYTHON__=%SBS_HOME%\win32\python264\python.exe
       
    37 @IF NOT "%SBS_PYTHON%"=="" GOTO sbspython
       
    38 @IF EXIST %__LOCAL_PYTHON__% GOTO localpython
       
    39 @SET __PYTHON__=python.exe
       
    40 @GOTO sbspythonpath
       
    41 
       
    42 :sbspython
    32 @SET __PYTHON__=%SBS_PYTHON%
    43 @SET __PYTHON__=%SBS_PYTHON%
    33 @IF "%__PYTHON__%"=="" SET __PYTHON__=%SBS_HOME%\win32\python264\python.exe
    44 @GOTO sbspythonpath
    34 @SET PYTHONPATH=%SBS_PYTHONPATH%
    45 
    35 @IF "%PYTHONPATH%"=="" SET PYTHONPATH=%SBS_HOME%\win32\python264
    46 :localpython
       
    47 @SET __PYTHON__=%__LOCAL_PYTHON__%
       
    48 @SET PYTHONPATH=
       
    49 
       
    50 :sbspythonpath
       
    51 @IF NOT "%SBS_PYTHONPATH%"=="" SET PYTHONPATH=%SBS_PYTHONPATH%
    36 
    52 
    37 @REM Use the mingw set by the environment if possible
    53 @REM Use the mingw set by the environment if possible
    38 @SET __MINGW__=%SBS_MINGW%
    54 @SET __MINGW__=%SBS_MINGW%
    39 @IF "%__MINGW__%"=="" SET __MINGW__=%SBS_HOME%\win32\mingw
    55 @IF "%__MINGW__%"=="" SET __MINGW__=%SBS_HOME%\win32\mingw
    40 
    56