10-09-2021, 04:26 PM
In something that works, add
That will show you the directories from which you can add something. You can alter the path before doing an import:
You can also add the current directory:
Code:
import sys
gimp.message("%r" % sys.path)
Code:
sys.path=['/some/additional/directory']+sys.path
import something # from /some/additional/directory, hopefully
Code:
sys.path=['.']+sys.path
import something # from current directory, hopefully