Maya python 导入语法无效

Maya python invalid syntax on import

我正在为 Maya 做一个 autorig,我有这个文件,return 我的语法无效 :

import maya.cmds as cmds
from SupeRigTools import *

def startButtonFunc():
    loadLocators()

    buttons = ["left_leg_button", "right_leg_button"]

    for but in buttons:
        cmds.button(but, edit = True, enable = True)

def leftLegButtonFunc():
    rigLeg("left")

    cmds.button("left_leg_button", edit = True, enable = False)

def rightLegButtonFunc():
    rigLeg("right")

    cmds.button("right_leg_button", edit = True, enable = False)

错误是:

# Error: line 1: SyntaxError: file <maya console> line 2: invalid syntax #

它曾经可以工作,但现在无法编译

您的 python 路径中是否有该模块?

import sys
sys.path.append('path/moduleFolder')
import SupeRigTools

我刚刚在我的 SupeRigTools 文件中间有一个语法错误,有一个分号,但 Maya 没有告诉我,谢谢你的回答