It's probably a typo. I think there should be a / on the line instead of .

Instead:

('mods.%s' % modName)

i think it should be:

('mods/%s' % modName)

or

('mods\\%s' % modName)