I SEE THE PROBLEM! Here:
def getSystem():
if os.path.exists("C:\"):
system = "Windows"
If you look at the highlighting, the ("C:\")
does not work. I recommend trying to make it ("C:\\")
instead and seeing if that will work.
I have this problem a lot when I forget a )
, like if I say for i in range(len(myList)
, I forgot to put the last )
. Whenever this happens, just know that there is are unclosed parenthesis somewhere.