Reference custom library


I’m trying to reference my library in the custom extension folder. But when run the code thru plugin button in Revit, error prompted and showed “ImportError: No module named lib”. Can anyone help with this? Thanks in advance.

You should reference to a file, not to a folder.
Create under lib folder. In create random class like
class Test_Class():
#some code in here

So basically in ur python scripts you use:
from test_lib import Test_Class