Import personnal py file


I need to know how to import a small lib I made.
My lib file calls and runs on it’s own.
I need the class included in this file to be used in blender (not the BGE).

I tryed import IES but the console tells me “no module of the name IES”.
I tried to add that before :

import sys

But not more success.

Any help would be appreciated, I looked in many threads here and no clear answer I have to say :frowning:

Thank you.

Since you are using “//”, I’m guessing you want to pick up a python file in the same directory as your blend. For that, this might be ok:

import Blender
import sys
import IES

Thank you paulfitz, it’s eactly what I needed.