I am studying Python little by little and one of my main source of studying is somebody else's scripts. I tried to google it, but i can't wrap it up around my head. What means % s.something()%name ?
I can't put exact code in , but for example (sorry little Maya sample):
mc.textScrollList(ams=False,fn='plainLabelFont',p=_ui['mainLay'],sc='%s.listSelected()' % __name__)
def listSelected(): some script which returns list
I read that % it's a module , but i don't understand how it works with definitions and what means 'name' there? I understand question is a little bit bad stated and without any normal example , but if somebody can understand and explain it to me I will really appreciate it !
Thanks!