You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.2 KiB
Batchfile
67 lines
2.2 KiB
Batchfile
@echo off
|
|
REM
|
|
REM Copyright (c) Contributors to the Open 3D Engine Project.
|
|
REM For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
REM
|
|
REM SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
REM
|
|
REM
|
|
|
|
:: Sets up environment for Lumberyard DCC tools and code access
|
|
|
|
:: Skip initialization if already completed
|
|
IF "%DCCSI_ENV_PYCHARM_INIT%"=="1" GOTO :END_OF_FILE
|
|
|
|
:: Store current dir
|
|
%~d0
|
|
cd %~dp0
|
|
PUSHD %~dp0
|
|
|
|
:: version Year
|
|
IF "%PYCHARM_VERSION_YEAR%"=="" (set PYCHARM_VERSION_YEAR=2020)
|
|
:: version Major
|
|
IF "%PYCHARM_VERSION_MAJOR%"=="" (set PYCHARM_VERSION_MAJOR=3)
|
|
:: version Minor
|
|
IF "%PYCHARM_VERSION_MINOR%"=="" (set PYCHARM_VERSION_MINOR=2)
|
|
|
|
|
|
:: PyCharm install paths look something like the following and has changed from release to release
|
|
::"C:\Program Files\JetBrains\PyCharm 2019.1.3\bin"
|
|
::"C:\Program Files\JetBrains\PyCharm 2020.3.2\bin" <-- this is mine @HogJonnyAMZN
|
|
::"C:\Program Files\JetBrains\PyCharm Community Edition 2018.3.5\bin\pycharm64.exe"
|
|
|
|
:: The version of PyCharm can be updated without altering the install path
|
|
:: You can set the envar to your local install path in the Env_Dev.bat file to override
|
|
:: C:< o3de install location >\Gems\AtomLyIntegration\TechnicalArt\DccScriptingInterface\Tools\Dev\Windows\Env_Dev.bat"
|
|
|
|
:: put project env variables/paths here
|
|
IF "%PYCHARM_HOME%"=="" (set PYCHARM_HOME=%PROGRAMFILES%\JetBrains\PyCharm %PYCHARM_VERSION_YEAR%.%PYCHARM_VERSION_MAJOR%.%PYCHARM_VERSION_MINOR%)
|
|
|
|
:: Initialize env
|
|
CALL %~dp0\Env_Core.bat
|
|
CALL %~dp0\Env_Python.bat
|
|
CALL %~dp0\Env_Qt.bat
|
|
|
|
IF "%PYCHARM_PROJ%"=="" (SET PYCHARM_PROJ=%PATH_DCCSIG%\Tools\Dev\Windows\Solutions)
|
|
|
|
echo.
|
|
echo _____________________________________________________________________
|
|
echo.
|
|
echo ~ Setting up O3DE DCCsi Dev Env PyCharm %PYCHARM_VERSION_YEAR%.%PYCHARM_VERSION_MAJOR%.%PYCHARM_VERSION_MINOR%
|
|
echo _____________________________________________________________________
|
|
echo.
|
|
|
|
echo PYCHARM_VERSION_YEAR = %PYCHARM_VERSION_YEAR%
|
|
echo PYCHARM_VERSION_MAJOR = %PYCHARM_VERSION_MAJOR%
|
|
echo PYCHARM_HOME = %PYCHARM_HOME%
|
|
echo PYCHARM_PROJ = %PYCHARM_PROJ%
|
|
|
|
:: Set flag so we don't initialize dccsi environment twice
|
|
SET DCCSI_ENV_PYCHARM_INIT=1
|
|
GOTO END_OF_FILE
|
|
|
|
:: Return to starting directory
|
|
POPD
|
|
|
|
:END_OF_FILE
|