Python: Forcing Relative Imports To Search From Script File June 25, 2024 Post a Comment This is my directory structure: scripts/ bpydata/ bpymodules/ myCustomScripts/ lib/ __init__.py customLib.py plugin/ __init__.py mySolution 1: To import from a parent package use ... If I'm not misunderstanding you, this should work:from ..libimport customLib CopySee http://docs.python.org/tutorial/modules.html. Share Post a Comment for "Python: Forcing Relative Imports To Search From Script File"
Post a Comment for "Python: Forcing Relative Imports To Search From Script File"