Skip to content

Commit

Permalink
[Update] Setup Bat
Browse files Browse the repository at this point in the history
* Fixed setupbat file using literal quoted path instead of actual normal path.
  • Loading branch information
cyberofficial committed Aug 5, 2024
1 parent 851309f commit 812b94c
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,21 @@ echo.
rem Prompt user to verify the Python version
set /p user_check="Does this show Python 3.10.x? (Y/N): "
if /i "%user_check%" neq "Y" (
Echo It seems you do not have Python 3.10.x installed.
Echo Please download and install Python 3.10.14 from the following link:
Echo https://www.python.org/downloads/release/python-31011/
Echo.
set /p folderpath="If you have Python 3.10.x installed but not in PATH, enter the path to the folder containing python.exe (e.g., C:\path\to\folder): "
if not exist "%folderpath%\python.exe" (
echo The specified path is not valid. Please ensure the path is correct.
pause
exit /b
)
set "python=%folderpath%\python.exe"
echo It seems you do not have Python 3.10.x installed.
echo Please download and install Python 3.10.10 from the following link:
echo https://www.python.org/downloads/release/python-31010/
echo.
set /p filepath="If you have Python 3.10.x installed but not in PATH, enter the path to the file python.exe for 3.10.x (e.g., C:\path\to\python\python.exe): "

echo Using this for python: !filepath!
set "python=!filepath!"
) else (
rem Set default python if user confirms Python 3.10.x is installed
set "python=python"
)

pause

goto :prepare_environment

:prepare_environment
Expand All @@ -47,7 +46,7 @@ if exist "data_whisper" (
)

echo Creating a new Python virtual environment...
"%python%" -m venv data_whisper
!python! -m venv data_whisper

echo Activating the environment...
call data_whisper\Scripts\activate.bat
Expand Down Expand Up @@ -92,7 +91,7 @@ echo You can edit this file with notepad if necessary.
pause

Echo Setting up Enviroment Stuff.
"%python%" set_up_env.py
!python! set_up_env.py

exit /b

Expand Down

0 comments on commit 812b94c

Please sign in to comment.