Surrouding the setting of the BASE_PATH within double quotes in the o3de.bat script. This allows to allow paths with spaces in it leading to the engine root directory to work properly when running the script

This commit is contained in:
lumberyard-employee-dm
2021-05-26 10:40:47 -05:00
parent 1f71bdeae3
commit 607dbc47b3
+3 -3
View File
@@ -12,15 +12,15 @@ REM
pushd %~dp0%
CD %~dp0..
SET BASE_PATH=%CD%
SET "BASE_PATH=%CD%"
CD %~dp0
SET PYTHON_DIRECTORY=%BASE_PATH%\python
SET "PYTHON_DIRECTORY=%BASE_PATH%\python"
IF EXIST "%PYTHON_DIRECTORY%" GOTO pythonPathAvailable
GOTO pythonDirNotFound
:pythonPathAvailable
SET PYTHON_EXECUTABLE=%PYTHON_DIRECTORY%\python.cmd
IF NOT EXIST "%PYTHON_EXECUTABLE%" GOTO pythonExeNotFound
CALL "%PYTHON_EXECUTABLE%" %BASE_PATH%\scripts\o3de.py %*
CALL "%PYTHON_EXECUTABLE%" "%BASE_PATH%\scripts\o3de.py" %*
GOTO end
:pythonDirNotFound
ECHO Python directory not found: %PYTHON_DIRECTORY%