Python Forum

Full Version: I need help finding an error in this code I have
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello! Recently I have been modifying the source of Toontown: Stride to make my own modifications. I have used a file called Suit.PY. With my most recent modification, I tried to use a file path command shown in a tutorial I was watching to modify the code to change Toontown cog heads. When I try and start after the modifications, it says there is a syntax error at the closing quotes.
filepath'phase_12/models/bossbotHQ/mole_cog'
^
I have no clue why its classified as an invalid syntax, could somebody help with fixing it? Here is the code that I was using.

if headType == "downsizer" and self.style.body == 'a':
    filepath = 'phase_4/models/char/suitB-heads'
elif headtype == 'mole_cog':
    filepath 'phase_12/models/bossbotHQ/mole_cog'
else:
missing = on line #4