Launch_Env_Cmd.bat 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @echo off
  2. REM
  3. REM Copyright (c) Contributors to the Open 3D Engine Project.
  4. REM For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. REM
  6. REM SPDX-License-Identifier: Apache-2.0 OR MIT
  7. REM
  8. REM
  9. :: Set up and run LY Python CMD prompt
  10. :: Sets up the DccScriptingInterface_Env,
  11. :: Puts you in the CMD within the dev environment
  12. :: Set up window
  13. TITLE O3DE DCC Scripting Interface Cmd
  14. :: Use obvious color to prevent confusion (Grey with Yellow Text)
  15. COLOR 8E
  16. echo.
  17. echo _____________________________________________________________________
  18. echo.
  19. echo ~ O3DE DCCsi CMD ...
  20. echo _____________________________________________________________________
  21. echo.
  22. %~d0
  23. cd %~dp0
  24. PUSHD %~dp0
  25. SETLOCAL ENABLEDELAYEDEXPANSION
  26. CALL %~dp0\Env_Core.bat
  27. CALL %~dp0\Env_Python.bat
  28. CALL %~dp0\Env_Qt.bat
  29. CALL %~dp0\Env_Maya.bat
  30. CALL %~dp0\Env_Substance.bat
  31. CALL %~dp0\Env_WingIDE.bat
  32. :: if the user has set up a custom env call it
  33. IF EXIST "%~dp0Env_Dev.bat" CALL %~dp0Env_Dev.bat
  34. :: Change to root dir
  35. CD /D %O3DE_PROJECT_PATH%
  36. :: Create command prompt with environment
  37. CALL %windir%\system32\cmd.exe
  38. ENDLOCAL
  39. :: Return to starting directory
  40. POPD
  41. :END_OF_FILE