Animation and Rigging Tools: FAQ, Known Issues and Feature Roadmap

I’m trying to get the tools for Mac to work (they don’t load automatically, so I’m running them through the script editor) and get the following error:

Error: IndexError: file <maya console> line 9: string index out of range

import maya.cmds as cmds
import os
import sys
from functools import partial
import maya.mel as mel
MAYA_SEP = ‘/’
def correctSysPath():
for i, path in enumerate(sys.path):
if path-1] in (MAYA_SEP, os.sep, os.altsep):
sys.path* = sys.path*:-1]

Line 9 is the if path-1]… line