python - Undefined Variable from import when using a .pyd library through a helper module -
i have following files: (note library pyd file -- it's external vendor library on sys.path not in pythonpath)
library.pyd library_helper.py one.py two.py assume library.pyd has method getname().
one.py
import library #@unresolvedimport ... print library.getname() i don't have lint errors here. code runs fine.
but if this:
library_helper.py
import library #@unresolvedimport two.py
from library_helper import library ... print library.getname() two.py gives lint error when calling library.getname(), "undefined variable import: getname." code still runs fine, doesn't seem fact going through library_helper.
i'm confused why causes problem. research far points related library.pyd doing import hook allows me getname() without errors, not know how go making work.
advice appreciated, thank you.
Comments
Post a Comment