Hey guys, I have a problem with the userSetup.py script for ART tool and maya 2017

Here is the error message…

Failed to execute userSetup.py
Traceback (most recent call last):
File “C:/Users/Alex/Documents/maya/2017/prefs/scripts\userSetup.py”, line 27, in
correctSysPath()
File “C:/Users/Alex/Documents/maya/2017/prefs/scripts\userSetup.py”, line 21, in correctSysPath
if path[-1] in (MAYA_SEP, os.sep, os.altsep):
IndexError: string index out of range

open your userSetup.py file and change the row 21 form:
if path[-1] in (MAYA_SEP, os.sep, os.altsep):
to:
if path[:-1] in (MAYA_SEP, os.sep, os.altsep):

Hi, Thankyou for the answer. I have tried this and it still does not work. I have Maya 2017 update 4. When I open Maya I do not get the window that pops up asking where to locate the file either. I did go through the forums looking for answers but in case I miss anything, is there any other suggestions?
Also I have Maya 2017 installed on second hard drive, drive D, if that matters. Thank you