Skip to content

Commit

Permalink
add contingency if Documents folder not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoltjoker committed Apr 26, 2023
1 parent bde1b05 commit 719c602
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ set /P MAYA_VERSION=What Maya version are you using? (2021, 2022, etc):
set MAYA_BIN_PATH=C:\Program Files\Autodesk\Maya%MAYA_VERSION%\bin\
set VENV_PATH=%~dp0chatgpt4maya\src\venv
set MODULE_PATH=%~dp0module
set USER_MODULE_PATH=%USERPROFILE%\Documents\maya\%MAYA_VERSION%\modules
IF EXIST "%USERPROFILE%\Documents" (
set USER_MODULE_PATH=%USERPROFILE%\Documents\maya\%MAYA_VERSION%\modules
) ELSE (
set USER_MODULE_PATH=%MODULE_PATH%
setx MAYA_MODULE_PATH %MODULE_PATH%;%MAYA_MODULE_PATH%
)
set MODULE=%USER_MODULE_PATH%\chatGPTForMayaModule.mod


Expand Down

0 comments on commit 719c602

Please sign in to comment.