project path wasn't needed, that was the old workaround to be able to import settings, but it was unnecessary. I've moved settings to the top of the third block, deleted the unneeded two lines, and nothing else needed changing.