Help us understand the problem. What is going on with this article?

【MAYA】重要そうな環境変数をずらっと出力する

More than 1 year has passed since last update.

昨日の投稿の作り物で頻繁にPYTHONPATHを確認していたので、プログラムで利用しそうな環境変数をログ出力するプログラムを用意しました。他にも良さそうな変数はあるかもですが、とりあえず便利です。

win / mac 両対応です。MAYA 2018 + MacOS Sierra および、 MAYA 2017 + Windows10 Pro で動作確認しました。コードは投稿の一番お尻に。

実行結果

特ににカスタマイズしてない状態で実行した結果を貼っておきます。MASHとXGEN関連が目立ちます。

Mac(MAYA2018)の出力

[MAYA_LOCATION] : 
    /Applications/Autodesk/maya2018/Maya.app/Contents

[MAYA_APP_DIR] : 
    /Users/ユーザ名/Library/Preferences/Autodesk/maya

[MAYA_SHELF_PATH] : 
    N/A

[MAYA_PRESET_PATH] : 

    /Applications/Autodesk/maya2018/plug-ins/ATF/presets
    /Applications/Autodesk/bifrost/maya2018/presets
    /Applications/Autodesk/maya2018/plug-ins/MASH/presets
    /Users/ユーザ名/Documents/maya_oreore_module1/presets
    /Applications/Autodesk/maya2018/plug-ins/fbx/presets
    /Applications/Houdini/Houdini16.5.323/Houdini Engine/maya/maya2018/presets
    /Applications/Autodesk/maya2018/plug-ins/camd/presets
    /Applications/solidangle/mtoa/2018/presets
    /Applications/Autodesk/maya2018/plug-ins/camd/presets
    /Applications/Autodesk/maya2018/plug-ins/camd/presets
    /Applications/Autodesk/maya2018/plug-ins/substance/presets
    /Applications/Autodesk/maya2018/plug-ins/xgen/presets

[XBMLANGPATH] : 
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/2018/ja_JP/prefs/icons
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/prefs/icons
    /Users/Shared/Autodesk/maya/2018/icons
    /Users/Shared/Autodesk/maya/icons
    /Applications/Autodesk/maya2018/Maya.app/Contents/icons
    /Applications/Autodesk/maya2018/Maya.app/Contents/app-defaults
    /Applications/Autodesk/maya2018/Maya.app/Contents/icons/paintEffects
    /Applications/Autodesk/maya2018/Maya.app/Contents/icons/fluidEffects
    /Applications/Autodesk/maya2018/Maya.app/Contents/icons/hair
    /Applications/Autodesk/maya2018/Maya.app/Contents/icons/cloth
    /Applications/Autodesk/maya2018/Maya.app/Contents/icons/live
    /Applications/Autodesk/maya2018/Maya.app/Contents/icons/fur
    /Applications/Autodesk/maya2018/Maya.app/Contents/icons/muscle
    /Applications/Autodesk/maya2018/Maya.app/Contents/icons/turtle
    /Applications/Autodesk/maya2018/Maya.app/Contents/icons/FBX
    /Applications/Autodesk/maya2018/Maya.app/Contents/icons/mayaHIK
    /Applications/Autodesk/maya2018/plug-ins/ATF/icons
    /Applications/Autodesk/bifrost/maya2018/icons
    /Applications/Autodesk/maya2018/plug-ins/MASH/icons
    /Users/ユーザ名/Documents/maya_oreore_module1/icons
    /Applications/Autodesk/maya2018/plug-ins/fbx/icons
    /Applications/Houdini/Houdini16.5.323/Houdini Engine/maya/maya2018/icons
    /Applications/Autodesk/maya2018/plug-ins/camd/icons
    /Applications/solidangle/mtoa/2018/icons
    /Applications/Autodesk/maya2018/plug-ins/camd/icons
    /Applications/Autodesk/maya2018/plug-ins/camd/icons
    /Applications/Autodesk/maya2018/plug-ins/substance/icons
    /Applications/Autodesk/maya2018/plug-ins/xgen/icons

[MAYA_SCRIPT_PATH] : 
    /Applications/solidangle/mtoa/2018/scripts/mtoa/2018/mel
    /Users/ユーザ名/Documents/maya/projects/default/scripts
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/2018/ja_JP/scripts
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/2018/scripts
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/scripts
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/2018/ja_JP/presets
    /Users/Shared/Autodesk/maya/2018/scripts
    /Users/Shared/Autodesk/maya/scripts
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/2018/ja_JP/prefs/shelves
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/2018/ja_JP/prefs/markingMenus
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/2018/ja_JP/prefs/scripts
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/startup
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/shelves
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/others
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/AETemplates
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/unsupported
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/paintEffects
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/fluidEffects
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/hair
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/cloth
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/live
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/fur
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/muscle
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/turtle
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/FBX
    /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/mayaHIK
    /Applications/Autodesk/maya2018/plug-ins/ATF/scripts
    /Applications/Autodesk/bifrost/maya2018/scripts/boss
    /Applications/Autodesk/bifrost/maya2018/scripts/presets
    /Applications/Autodesk/bifrost/maya2018/scripts
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/apiclient
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/flux
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/googleapiclient
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/httplib2
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/MASH
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/MASHAET
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/MayaToAE
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/oauth2client
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/uritemplate
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/flux/ae
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/flux/resources
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/flux/ui
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/flux/resources/icons
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts
    /Users/ユーザ名/Documents/maya_oreore_module1/scripts
    /Applications/Autodesk/maya2018/plug-ins/fbx/scripts
    /Applications/Houdini/Houdini16.5.323/Houdini Engine/maya/maya2018/scripts
    /Applications/Autodesk/maya2018/plug-ins/camd/scripts
    /Applications/solidangle/mtoa/2018/scripts
    /Applications/Autodesk/maya2018/plug-ins/camd/scripts
    /Applications/Autodesk/maya2018/plug-ins/camd/scripts
    /Applications/Autodesk/maya2018/plug-ins/substance/scripts
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/cafm
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/xmaya
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/ae
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/brushes
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/dialogs
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/fxmodules
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/tabs
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/util
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/widgets
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts
    /Applications/solidangle/mtoa/2018/scripts/mtoa/mel

[MAYA_MODULE_PATH] : 
    /Applications/Autodesk/maya2018/Maya.app/Contents/modules
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/2018/modules
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/modules
    /Users/Shared/Autodesk/modules/maya/2018
    /Users/Shared/Autodesk/modules/maya

[MAYA_PLUG_IN_PATH] : 
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/2018/plug-ins
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/2018/plug-ins
    /Users/ユーザ名/Library/Preferences/Autodesk/maya/plug-ins
    /Users/Shared/Autodesk/maya/2018/plug-ins
    /Users/Shared/Autodesk/maya/plug-ins
    /Applications/Autodesk/maya2018/Maya.app/Contents/MacOS/plug-ins
    /Applications/Autodesk/maya2018/plug-ins/ATF/plug-ins
    /Applications/Autodesk/bifrost/maya2018/plug-ins
    /Applications/Autodesk/maya2018/plug-ins/MASH/plug-ins
    /Users/ユーザ名/Documents/maya_oreore_module1/plug-ins
    /Applications/Autodesk/maya2018/plug-ins/fbx/plug-ins
    /Applications/Houdini/Houdini16.5.323/Houdini Engine/maya/maya2018/plug-ins
    /Applications/Autodesk/maya2018/plug-ins/camd/plug-ins
    /Applications/solidangle/mtoa/2018/plug-ins
    /Applications/Autodesk/maya2018/plug-ins/camd/plug-ins
    /Applications/Autodesk/maya2018/plug-ins/camd/plug-ins
    /Applications/Autodesk/maya2018/plug-ins/substance/plug-ins
    /Applications/Autodesk/maya2018/plug-ins/xgen/plug-ins

[PYTHONPATH] : 

    /Applications/Autodesk/maya2018/plug-ins/ATF/scripts
    /Applications/Autodesk/bifrost/maya2018/scripts/boss
    /Applications/Autodesk/bifrost/maya2018/scripts/presets
    /Applications/Autodesk/bifrost/maya2018/scripts
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/apiclient
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/flux
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/googleapiclient
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/httplib2
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/MASH
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/MASHAET
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/MayaToAE
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/oauth2client
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/uritemplate
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/flux/ae
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/flux/resources
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/flux/ui
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts/flux/resources/icons
    /Applications/Autodesk/maya2018/plug-ins/MASH/scripts
    /Users/ユーザ名/Documents/maya_oreore_module1/scripts
    /Applications/Autodesk/maya2018/plug-ins/fbx/scripts
    /Applications/Houdini/Houdini16.5.323/Houdini Engine/maya/maya2018/scripts
    /Applications/Autodesk/maya2018/plug-ins/camd/scripts
    /Applications/solidangle/mtoa/2018/scripts
    /Applications/Autodesk/maya2018/plug-ins/camd/scripts
    /Applications/Autodesk/maya2018/plug-ins/camd/scripts
    /Applications/Autodesk/maya2018/plug-ins/substance/scripts
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/cafm
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/xmaya
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/ae
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/brushes
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/dialogs
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/fxmodules
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/tabs
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/util
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgenm/ui/widgets
    /Applications/Autodesk/maya2018/plug-ins/xgen/scripts
    /Users/ユーザ名/Documents/maya_oreore_module1/python

[MAYA_PROJECT] : 
    N/A

[MAYA_UI_LANGUAGE] : 
    N/A

[MAYA_CMD_FILE_OUTPUT] : 
    N/A

Windows10(MAYA2017)での実行結果

[MAYA_LOCATION] : 
    C:/Program Files/Autodesk/Maya2017

[MAYA_APP_DIR] : 
    C:/Users/ユーザ名/Documents/maya

[MAYA_SHELF_PATH] : 
    N/A

[MAYA_PRESET_PATH] : 

    C:/Program Files/Autodesk/Maya2017/plug-ins/ATF/presets
    C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/presets
    C:/Program Files/Autodesk/Maya2017/plug-ins/MASH/presets
    C:/Program Files/Autodesk/Maya2017/plug-ins/fbx/presets
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/presets
    C:/solidangle/mtoadeploy/2017/presets
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/presets
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/presets
    C:/Program Files/Autodesk/Maya2017/plug-ins/substance/presets
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/presets

[XBMLANGPATH] : 
    C:/Users/ユーザ名/Documents/maya/2017/ja_JP/prefs/icons
    C:/Users/ユーザ名/Documents/maya/prefs/icons
    C:/ProgramData/Autodesk/maya/2017
    C:/Program Files/Autodesk/Maya2017/icons
    C:/Program Files/Autodesk/Maya2017/app-defaults
    C:/Program Files/Autodesk/Maya2017/icons/paintEffects
    C:/Program Files/Autodesk/Maya2017/icons/fluidEffects
    C:/Program Files/Autodesk/Maya2017/icons/hair
    C:/Program Files/Autodesk/Maya2017/icons/cloth
    C:/Program Files/Autodesk/Maya2017/icons/live
    C:/Program Files/Autodesk/Maya2017/icons/fur
    C:/Program Files/Autodesk/Maya2017/icons/muscle
    C:/Program Files/Autodesk/Maya2017/icons/turtle
    C:/Program Files/Autodesk/Maya2017/icons/FBX
    C:/Program Files/Autodesk/Maya2017/icons/mayaHIK
    C:/Program Files/Autodesk/Maya2017/plug-ins/ATF/icons
    C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/icons
    C:/Program Files/Autodesk/Maya2017/plug-ins/MASH/icons
    C:/Program Files/Autodesk/Maya2017/plug-ins/fbx/icons
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/icons
    C:/solidangle/mtoadeploy/2017/icons
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/icons
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/icons
    C:/Program Files/Autodesk/Maya2017/plug-ins/substance/icons
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/icons

[MAYA_SCRIPT_PATH] : 
    C:/Users/ユーザ名/Documents/maya/projects/default/scripts
    C:/Users/ユーザ名/Documents/maya/2017/ja_JP/scripts
    C:/Users/ユーザ名/Documents/maya/2017/scripts
    C:/Users/ユーザ名/Documents/maya/scripts
    C:/Users/ユーザ名/Documents/maya/2017/ja_JP/presets
    C:/Users/ユーザ名/Documents/maya/2017/ja_JP/prefs/shelves
    C:/Users/ユーザ名/Documents/maya/2017/ja_JP/prefs/markingMenus
    C:/Users/ユーザ名/Documents/maya/2017/ja_JP/prefs/scripts
    C:/Program Files/Autodesk/Maya2017/scripts
    C:/Program Files/Autodesk/Maya2017/scripts/startup
    C:/Program Files/Autodesk/Maya2017/scripts/shelves
    C:/Program Files/Autodesk/Maya2017/scripts/others
    C:/Program Files/Autodesk/Maya2017/scripts/AETemplates
    C:/Program Files/Autodesk/Maya2017/scripts/unsupported
    C:/Program Files/Autodesk/Maya2017/scripts/paintEffects
    C:/Program Files/Autodesk/Maya2017/scripts/fluidEffects
    C:/Program Files/Autodesk/Maya2017/scripts/hair
    C:/Program Files/Autodesk/Maya2017/scripts/cloth
    C:/Program Files/Autodesk/Maya2017/scripts/live
    C:/Program Files/Autodesk/Maya2017/scripts/fur
    C:/Program Files/Autodesk/Maya2017/scripts/muscle
    C:/Program Files/Autodesk/Maya2017/scripts/turtle
    C:/Program Files/Autodesk/Maya2017/scripts/FBX
    C:/Program Files/Autodesk/Maya2017/scripts/mayaHIK
    C:/Program Files/Autodesk/Maya2017/plug-ins/ATF/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/scripts/boss
    C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/scripts/presets
    C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/MASH/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/fbx/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/scripts
    C:/solidangle/mtoadeploy/2017/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/substance/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/cafm
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/xmaya
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/ae
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/brushes
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/dialogs
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/fxmodules
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/tabs
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/util
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/widgets
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts

[MAYA_MODULE_PATH] : 
    C:/Program Files/Autodesk/Maya2017/modules
    C:/Users/ユーザ名/Documents/maya/2017/modules
    C:/Users/ユーザ名/Documents/maya/modules
    C:/Program Files/Common Files/Autodesk Shared/Modules/maya/2017

[MAYA_PLUG_IN_PATH] : 
    C:/Users/ユーザ名/Documents/maya/2017/plug-ins
    C:/Users/ユーザ名/Documents/maya/plug-ins
    C:/Program Files/Autodesk/Maya2017/bin/plug-ins
    C:/Program Files/Autodesk/Maya2017/plug-ins/ATF/plug-ins
    C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/plug-ins
    C:/Program Files/Autodesk/Maya2017/plug-ins/MASH/plug-ins
    C:/Program Files/Autodesk/Maya2017/plug-ins/fbx/plug-ins
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/plug-ins
    C:/solidangle/mtoadeploy/2017/plug-ins
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/plug-ins
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/plug-ins
    C:/Program Files/Autodesk/Maya2017/plug-ins/substance/plug-ins
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/plug-ins

[PYTHONPATH] : 

    C:/Program Files/Autodesk/Maya2017/plug-ins/ATF/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/scripts/boss
    C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/scripts/presets
    C:/Program Files/Autodesk/Maya2017/plug-ins/bifrost/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/MASH/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/fbx/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/scripts
    C:/solidangle/mtoadeploy/2017/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/camd/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/substance/scripts
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/cafm
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/xmaya
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/ae
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/brushes
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/dialogs
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/fxmodules
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/tabs
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/util
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts/xgenm/ui/widgets
    C:/Program Files/Autodesk/Maya2017/plug-ins/xgen/scripts

[MAYA_PROJECT] : 
    N/A

[MAYA_UI_LANGUAGE] : 
    N/A

[MAYA_CMD_FILE_OUTPUT] : 
    N/A

両者で結構違うものですね。

クイック実行用コード

シェルフなどに登録してどうぞ

import platform
import os

def print_envs():

    def isWindows():
        return platform.system() == 'Windows'

    def print_env(key):
        env = os.getenv(key)
        if env is None:
            print ('[{}] : \n\tN/A'.format(key))
            return
        sep = ':'
        if isWindows():
            sep = ';'
        values = env.split(sep)
        print('[{}] : '.format(key))
        for v in values:
            print('\t{}'.format(v))

    keys = [
        'MAYA_LOCATION',
        'MAYA_APP_DIR',
        'MAYA_SHELF_PATH',
        'MAYA_PRESET_PATH',
        'XBMLANGPATH',
        'MAYA_SCRIPT_PATH',
        'MAYA_MODULE_PATH',
        'MAYA_PLUG_IN_PATH',
        'PYTHONPATH',
        'MAYA_PROJECT',
        'MAYA_UI_LANGUAGE',
        'MAYA_CMD_FILE_OUTPUT'
    ]

    print('')
    for k in keys:
        print_env(k)
        print('')

print_envs()
del print_envs
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away