Skip to content

Commit

Permalink
Change setup.bat: PYTHONPATH inside IF blocks tableau#56
Browse files Browse the repository at this point in the history
to set environment variables correctly inside IF blocks, the name of the variable needs to be in quotes
set help to get the man page
  • Loading branch information
johng42 authored Jun 21, 2018
1 parent 34ebad3 commit d3b1d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ IF %CONDACMD%=="" SET CONDACMD=%UserProfile%\Anaconda\Scripts
@ECHO %CONDACMD:Scripts=envs%\%CONDA_ENVIRONMENT%
)
@CALL %CONDACMD%\activate %CONDA_ENVIRONMENT%
@SET PYTHONPATH=%PYTHONPATH%;%CONDACMD:Scripts=envs%\%CONDA_ENVIRONMENT%\Scripts
@SET PYTHONPATH="%PYTHONPATH%";%CONDACMD:Scripts=envs%\%CONDA_ENVIRONMENT%\Scripts
@ECHO.
@ECHO ~~~~~~~~~~~~~~~~~~~~~~~~~~ Installing dependencies ~~~~~~~~~~~~~~~~~~~~~~~~~~
@ECHO.
Expand All @@ -83,7 +83,7 @@ pip install ./tabpy-server
@ECHO.
@ECHO.
@IF NOT EXIST "%TABPY_STATE_PATH%\state.ini" @copy "%TABPY_STATE_PATH%\state.ini.template" "%TABPY_STATE_PATH%\state.ini"
@SET PYTHONPATH=%PYTHONPATH%;%TABPY_STATE_PATH%
@SET PYTHONPATH="%PYTHONPATH%";%TABPY_STATE_PATH%
@python "%TABPY_STATE_PATH%\tabpy.py" --port %port%
)
IF NOT EXIST %STARTUPBAT% (
Expand Down

0 comments on commit d3b1d4f

Please sign in to comment.