Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with plugin
#3
Ofnuts--First: many, many thanks! Following your kind explanations, I have got the plugin installed and running. Maybe tomorrow I can post an example of its use (small fonts in maps / 'single path' fonts...)
Now, you say
Quote:Use the Apply button in the PDB browser to get a Python-acceptable version of the call copied to the Python console.
Well--although I have got Linux installed in an old laptop (unopened, alas! for months) I work chiefly in Win7, and my procedures browser doesn't include any gimp_..., but only gimp-... entries. I can only hope that a substitution of -/_ will cover most cases, it's one of those instance where I miss a cheat sheat!
Just discovered that the Apply button appears when one calls the PDB browser with phyton console opened.

New hitch: editing

Code:
import sys
sys.stderr = open('G:/Tests/Gimp_plug/python-fu-output.txt','a')
sys.stdout=sys.stderr # So that they both go to the same file
to

Code:
import sys
sys.stderr = open(os.path.devnull,'a')
made the plugin unaloadable:

Code:
Traceback (most recent call last):
  File "G:\GimpResources\plug-ins\group-text2path.py", line 15, in <module>
    sys.stderr = open(os.path.devnull,'a')
NameError: name 'os' is not defined
Is there an alternative, or just comment out the call to traceback for normal use?
Thanks, gracias, merci...
Reply


Messages In This Thread
Help with plugin - by carmen - 10-10-2019, 05:33 PM
RE: Help with plugin - by Ofnuts - 10-10-2019, 08:36 PM
RE: Help with plugin - by carmen - 10-10-2019, 10:03 PM
RE: Help with plugin - by Ofnuts - 10-11-2019, 06:22 AM
RE: Help with plugin - by carmen - 10-11-2019, 05:24 PM

Forum Jump: