intellibot
intellibot copied to clipboard
Relative import for folder based library not working
Consider a python library written in class structure, the folder structure is as such:
Project ---- Lib ------ Keyword --------- init.py --------- CustomKeywords2.py --------- CustomKeywords1.py Where Project is in Python path and init.py have Keyword class inheriting CustomKeywords1 and CustomKeywords2
Now if we try to import Keyword as *** Settings *** Library Lib/Keyword
The plugin searches Keyword.py file and couldn't find it
It works, if we put Lib in python path and import it like *** Settings *** Library Keyword
Shouldn't it be:
Library Lib.Keyword