Node-red python function

Hello
I have a problem but i'm unable to find the solution.
Using the python function i do
from pigpio_encoder.rotary import Rotary
But i get the error : no module named pigpio_encoder,
I have this module if i import it from python shell i have no problem to run it
sorry for my stupid question but it's the first time that i use node red
Regards

Hello i have solved doing this:
import sys
sys.path.append("path_to_my_lib")
Regards Luca