python sciprts working in nuke 6.1 v1 and not in v3

i have a file "myLib.py" in which i have simply put my functions / defs like
—————————-

Quote:

#myLib.py file sample
def q3d():
print ("hi")
def q2d():
print ("wi")


—————————–

then in menu.py file, i used to
1- import myLib
2- mcMenu.addCommand(‘scripts/hi’,’lmLib.q3d()’,’+P’)

and it used to work …..
now when i update to nuke 6.1, v3
it says, "myLib" is not valid module…

any ideas, how to fix this…will be of great help..
huge thanks in advance..

No Responses to “python sciprts working in nuke 6.1 v1 and not in v3”

Post a Comment