diff --git a/Install.py b/Install.py index d04549f..cebc70c 100644 --- a/Install.py +++ b/Install.py @@ -30,26 +30,8 @@ except ImportError: QtCore = QtGui = QtWidgets = 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 - #===================================== 3. Utility Functions ===================================== def maya_main_window(): """获取Maya主窗口"""