intellibot icon indicating copy to clipboard operation
intellibot copied to clipboard

Relative import for folder based library not working

Open catchayaz opened this issue 10 years ago • 1 comments

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

catchayaz avatar Aug 10 '14 18:08 catchayaz

Shouldn't it be:

Library Lib.Keyword

adommisse4c avatar May 03 '16 11:05 adommisse4c