Skip to content

Commit

Permalink
Updated the helptable path to use an env variable
Browse files Browse the repository at this point in the history
The newly defined env variable is MAYAUSD_LIB_LOCATION which points to the 'lib' path.
  • Loading branch information
AramAzhari-adsk committed Aug 10, 2023
1 parent 82012c9 commit 44801a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/mayaUsd/resources/scripts/mayaUsdUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,9 @@ def showHelpMayaUSD(contentId):

try:
# Finding the path to helpTableMayaUSD file.
dirName = cmds.pluginInfo('mayaUsdPlugin', q=True, p=True)
dirName = os.path.dirname(dirName) + "/../../../lib/helpTable/" + "helpTableMayaUSD"
helpTablePath = os.path.join(os.environ['MAYAUSD_LIB_LOCATION'], 'helpTable/helpTableMayaUSD');
# Setting the default helpTable to helpTableMayaUSD
cmds.showHelp(dirName, helpTable=True)
cmds.showHelp(helpTablePath, helpTable=True)
# Showing the help content
cmds.showHelp(contentId)
finally:
Expand Down
1 change: 1 addition & 0 deletions modules/mayaUSD.mod.template
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ${PXR_OVERRIDE_PLUGINPATH_NAME}+:=lib/usd
MAYAUSD_VERSION=${MAYAUSD_VERSION}
PXR_MTLX_STDLIB_SEARCH_PATHS+:=libraries
${MAYAUSD_GTEST_PATH}
MAYAUSD_LIB_LOCATION:=lib

+ MayaUSD ${MAYAUSD_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/adsk
plug-ins: plugin
1 change: 1 addition & 0 deletions modules/mayaUSD_Win.mod.template
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ${PXR_OVERRIDE_PLUGINPATH_NAME}+:=lib/usd
MAYAUSD_VERSION=${MAYAUSD_VERSION}
PXR_MTLX_STDLIB_SEARCH_PATHS+:=libraries
${MAYAUSD_GTEST_PATH}
MAYAUSD_LIB_LOCATION:=lib

+ MayaUSD ${MAYAUSD_VERSION} ${CMAKE_INSTALL_PREFIX}/plugin/adsk
plug-ins: plugin

0 comments on commit 44801a5

Please sign in to comment.