Update Install.py
This commit is contained in:
parent
572b48770e
commit
fdd0d92035
18
Install.py
18
Install.py
@ -30,26 +30,8 @@ except ImportError:
|
|||||||
QtCore = QtGui = QtWidgets = None
|
QtCore = QtGui = QtWidgets = None
|
||||||
wrapInstance = None
|
wrapInstance = None
|
||||||
|
|
||||||
# def get_script_path():
|
|
||||||
# try:
|
|
||||||
# maya_script = mel.eval('getenv("MAYA_SCRIPT_PATH")')
|
|
||||||
# if maya_script:
|
|
||||||
# paths = maya_script.split(os.pathsep)
|
|
||||||
# for path in paths:
|
|
||||||
# install_path = os.path.join(path, "Install.py")
|
|
||||||
# if os.path.exists(install_path):
|
|
||||||
# return os.path.dirname(install_path)
|
|
||||||
# except:
|
|
||||||
# pass
|
|
||||||
|
|
||||||
# try:
|
|
||||||
# return os.path.dirname(os.path.abspath(__file__))
|
|
||||||
# except:
|
|
||||||
# return os.getcwd()
|
|
||||||
|
|
||||||
TOOL_PATH = data.TOOL_PATH
|
TOOL_PATH = data.TOOL_PATH
|
||||||
|
|
||||||
|
|
||||||
#===================================== 3. Utility Functions =====================================
|
#===================================== 3. Utility Functions =====================================
|
||||||
def maya_main_window():
|
def maya_main_window():
|
||||||
"""获取Maya主窗口"""
|
"""获取Maya主窗口"""
|
||||||
|
Loading…
Reference in New Issue
Block a user