It was CyGame().getReplayInfo().getModName() but it didn't work. It apparently produced an empty string. 
Why don't I use your code? Because I don't have the CvModFolder module and I'd rather not include either. But I guess I can find the code that actually works in there, then?
edit: No such luck. I can't find the CvModFolder module in \BUG Mod 4.3\Assets\Python\ or any of its sub-folders. Where are you importing it from then?

Why don't I use your code? Because I don't have the CvModFolder module and I'd rather not include either. But I guess I can find the code that actually works in there, then?
edit: No such luck. I can't find the CvModFolder module in \BUG Mod 4.3\Assets\Python\ or any of its sub-folders. Where are you importing it from then?