aboutsummaryrefslogtreecommitdiff
path: root/utils/getMayaLocation.bat
blob: cdc26572ee0e9c55774701c7dd40e4cdb4567593 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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