2 Jan
2004
2 Jan
'04
7:24 p.m.
Sebastian Krollmann wrote at 2004-1-2 12:34 +0100:
I need to add some textual info (docstring) to all Python Scripts. I see three possible solutions for that:
1. Patching Python Script Product to add one more property additional to the title property 2. Patching Python Script Product to add one more binding varable 3. Adding a special variable declaration and parsing the body of the script to retrieve the text. The body of scrips is parsed for syntax errors, but is it possible to get the values of variables without calling the script?
Has anybody done something like this before or can give some ideas, hints etc.?
I would take PythonScript's "title" handling as a blueprint... -- Dieter