diff options
Diffstat (limited to 'utils/getMayaLocation.bat')
| -rw-r--r-- | utils/getMayaLocation.bat | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/utils/getMayaLocation.bat b/utils/getMayaLocation.bat new file mode 100644 index 0000000..cdc2657 --- /dev/null +++ b/utils/getMayaLocation.bat @@ -0,0 +1,30 @@ +@echo off + +rem Shave and a Haircut +rem (c) 2019 Epic Games +rem US Patent 6720962 + +rem This script requires that the mayaVersionMajor, mayaVersionMinor and +rem mayaVersionBits envariables all be properly set. That generally means +rem that splitMayaVersion.bat should be called before this. + +set mayaLocation=. + +if "%mayaVersionBits%"=="" ( + echo getMayaLocation: mayaVersionBits not defined. Call splitMayaVersion first. + goto done +) + +if "%AUTODESK_LOCATION%"=="" ( + echo getMayaLocation: AUTODESK_LOCATION not defined. + goto done +) + +set mayaLocation=%AUTODESK_LOCATION%\Maya%mayaVersion% + +if not exist "%mayaLocation%" ( + echo getMayaLocation: Maya %mayaVersion% not installed under %AUTODESK_LOCATION%. + set mayaLocation=. +) + +:done |