Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keyboard entries into script
#6
In something that works, add
Code:
import sys
gimp.message("%r" % sys.path)
That will show you the directories from which you can add something. You can alter the path before doing an import:
Code:
sys.path=['/some/additional/directory']+sys.path
import something # from /some/additional/directory, hopefully
You can also add the current directory:
Code:
sys.path=['.']+sys.path
import something # from current directory, hopefully
Reply


Messages In This Thread
Keyboard entries into script - by david - 10-07-2021, 04:11 PM
RE: Keyboard entries into script - by Ofnuts - 10-07-2021, 10:35 PM
RE: Keyboard entries into script - by david - 10-08-2021, 09:28 AM
RE: Keyboard entries into script - by Ofnuts - 10-09-2021, 10:54 AM
RE: Keyboard entries into script - by david - 10-09-2021, 03:43 PM
RE: Keyboard entries into script - by Ofnuts - 10-09-2021, 04:26 PM
RE: Keyboard entries into script - by david - 10-10-2021, 08:43 AM
RE: Keyboard entries into script - by david - 10-10-2021, 06:15 PM
RE: Keyboard entries into script - by Ofnuts - 10-11-2021, 09:07 AM

Forum Jump: