Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
current folder in plugin
#6
Yes, in the Gimp standard error stream. But on Windows it is typically hidden (but I think you can get at it if you start Gimp with gimp-console.exe).

Otherwise:
  • You can catch the worst blunders (unbalanced parentheses, indentation...) by trying to run the code in a command prompt (it should fail, but not elicit syntax errors)
  • You bracket the code in a try/except block, and display the Python error in a Gimp message.
See examples in most of my scripts....
Reply


Messages In This Thread
current folder in plugin - by gimpygirl - 02-28-2024, 06:46 PM
RE: current folder in plugin - by Ofnuts - 02-28-2024, 11:08 PM
RE: current folder in plugin - by gimpygirl - 02-29-2024, 12:22 AM
RE: current folder in plugin - by Ofnuts - 02-29-2024, 12:48 AM
RE: current folder in plugin - by gimpygirl - 02-29-2024, 01:12 AM
RE: current folder in plugin - by Ofnuts - 02-29-2024, 12:07 PM
RE: current folder in plugin - by gimpygirl - 02-29-2024, 06:33 PM
RE: current folder in plugin - by Ofnuts - 02-29-2024, 11:34 PM
RE: current folder in plugin - by gimpygirl - 03-01-2024, 12:28 AM
RE: current folder in plugin - by Ofnuts - 03-01-2024, 07:35 AM
RE: current folder in plugin - by gimpygirl - 03-01-2024, 08:43 PM
RE: current folder in plugin - by Ofnuts - 03-01-2024, 09:32 PM
RE: current folder in plugin - by gimpygirl - 03-03-2024, 01:49 AM
RE: current folder in plugin - by Ofnuts - 03-03-2024, 04:39 PM
RE: current folder in plugin - by gimpygirl - 03-04-2024, 02:14 AM

Forum Jump: