Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gimp Python-fu 2.7 to launch Python 3 for editing images
#3
(11-12-2018, 02:43 PM)Ofnuts Wrote: Possibly a matter of path. What do you get with:

Code:
call(["C:/Users/audov/AppData/Local/Programs/Python/Python36/python.exe", "-c","import sys;print(sys.path);"])
Your current directory is another possible difference.

Thank you for your swift reply. That did return an exit code of 0 but it was too fast for me to see anything so I added a timer.

Code:
subprocess.call(["C:/Users/audov/AppData/Local/Programs/Python/Python36/python.exe", "-c","import sys;print(sys.path);import time; time.sleep(20);"])

Code:
['', 'C:\\Program Files\\GIMP 2\\32\\lib\\gimp\\2.0\\python',
'C:\\Program Files\\GIMP 2\\lib\\gimp\\2.0\\plug-ins\\python-console',
'C:\\Users\\audov\\AppData\\Local\\Programs\\Python\\Python36\\python36.zip',
'C:\\Users\\audov\\AppData\\Local\\Programs\\Python\\Python36\\DLLs',
'C:\\Users\\audov\\AppData\\Local\\Programs\\Python\\Python36\\lib',
'C:\\Users\\audov\\AppData\\Local\\Programs\\Python\\Python36',
'C:\\Users\\audov\\AppData\\Roaming\\Python\\Python36\\site-packages',
'C:\\Users\\audov\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages']

(I added the line breaks for visual clarity.)

I don't know yet if this will lead to the answer but I hope this way I can at least see more meaningful error codes.
Reply


Messages In This Thread
RE: Gimp Python-fu 2.7 to launch Python 3 for editing images - by audovoice - 11-12-2018, 03:07 PM

Forum Jump: